From ac90207daaa3662c5259f463741808c8873b5e10 Mon Sep 17 00:00:00 2001 From: serapath Date: Wed, 6 Jun 2018 08:02:49 -0400 Subject: [PATCH] rhp: prepare indentation for class --- src/app/panels/righthand-panel.js | 119 +++++++++++++++--------------- 1 file changed, 59 insertions(+), 60 deletions(-) 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} -