diff --git a/src/app/panels/righthand-panel.js b/src/app/panels/righthand-panel.js index 5c0f9dc53d..d1a7e43494 100644 --- a/src/app/panels/righthand-panel.js +++ b/src/app/panels/righthand-panel.js @@ -1,34 +1,34 @@ -var yo = require('yo-yo') -var csjs = require('csjs-inject') -var remixLib = require('remix-lib') +const yo = require('yo-yo') +const csjs = require('csjs-inject') +const remixLib = require('remix-lib') -var styleguide = require('../ui/styles-guide/theme-chooser') -var PluginManager = require('../plugin/pluginManager') -var TabbedMenu = require('../tabs/tabbed-menu') -var CompileTab = require('../tabs/compile-tab') -var SettingsTab = require('../tabs/settings-tab') -var AnalysisTab = require('../tabs/analysis-tab') -var DebuggerTab = require('../tabs/debugger-tab') -var SupportTab = require('../tabs/support-tab') -var PluginTab = require('../tabs/plugin-tab') -var TestTab = require('../tabs/test-tab') -var RunTab = require('../tabs/run-tab') +const styleguide = require('../ui/styles-guide/theme-chooser') +const PluginManager = require('../plugin/pluginManager') +const TabbedMenu = require('../tabs/tabbed-menu') +const CompileTab = require('../tabs/compile-tab') +const SettingsTab = require('../tabs/settings-tab') +const AnalysisTab = require('../tabs/analysis-tab') +const DebuggerTab = require('../tabs/debugger-tab') +const SupportTab = require('../tabs/support-tab') +const PluginTab = require('../tabs/plugin-tab') +const TestTab = require('../tabs/test-tab') +const RunTab = require('../tabs/run-tab') -var EventManager = remixLib.EventManager -var styles = styleguide.chooser() +const EventManager = remixLib.EventManager +const styles = styleguide.chooser() module.exports = function RighthandPanel (appAPI = {}, events = {}, opts = {}) { - var self = this + const self = this self._api = appAPI self.event = new EventManager() self._view = {} - var optionViews = yo`
` + const optionViews = yo`` self._view.dragbar = yo`` // load tabbed menu component - var tabEvents = {compiler: events.compiler, app: events.app, rhp: self.event} + const tabEvents = {compiler: events.compiler, app: events.app, rhp: self.event} self._view.tabbedMenu = new TabbedMenu(appAPI, tabEvents) - var options = self._view.tabbedMenu.render() + const options = self._view.tabbedMenu.render() options.classList.add(css.opts) self._view.element = yo`