diff --git a/src/app/panels/righthand-panel.js b/src/app/panels/righthand-panel.js index 8b7ccb0619..a83dae1f8b 100644 --- a/src/app/panels/righthand-panel.js +++ b/src/app/panels/righthand-panel.js @@ -17,72 +17,71 @@ const RunTab = require('../tabs/run-tab') const EventManager = remixLib.EventManager const styles = styleguide.chooser() -function RighthandPanel (api = {}, events = {}, opts = {}) { - const self = this - self._api = api - self._events = events - self._opts = opts - self.event = new EventManager() - self._view = { el: null, tabbedMenu: null, tabbedMenuViewport: null, dragbar: null } - self._components = {} +var prototype = { + constructor: function RighthandPanel (api = {}, events = {}, opts = {}) { + const self = this + self._api = api + self._events = events + self._opts = opts + self.event = new EventManager() + self._view = { el: null, tabbedMenu: null, tabbedMenuViewport: null, dragbar: null } + self._components = {} - const optionViews = yo`
` - self._view.dragbar = yo`
` - // load tabbed menu component - const tabEvents = {compiler: self._events.compiler, app: self._events.app, rhp: self.event} - self._view.tabbedMenu = new TabbedMenu(self._api, tabEvents) - const options = self._view.tabbedMenu.render() - options.classList.add(css.opts) - self._view.element = yo` -
- ${self._view.dragbar} -