diff --git a/src/app/panels/righthand-panel.js b/src/app/panels/righthand-panel.js index fbd168ed1d..bb15d66a6f 100644 --- a/src/app/panels/righthand-panel.js +++ b/src/app/panels/righthand-panel.js @@ -34,7 +34,17 @@ module.exports = class RighthandPanel { tabbedMenuViewport: null, dragbar: null } - self._components = {} + self._components = { + pluginManager: new PluginManager(self._opts.pluginAPI, self._events), + tabbedMenu: new TabbedMenu(self._api, self._events), + compile: new CompileTab(self._api, self._events, self._opts), + run: new RunTab(self._api, self._events, self._opts), + settings: new SettingsTab(self._api, self._events, self._opts), + analysis: new AnalysisTab(self._api, self._events, self._opts), + debug: new DebuggerTab(self._api, self._events, self._opts), + support: new SupportTab(self._api, self._events, self._opts), + test: new TestTab(self._api, self._events, self._opts) + } self.event.register('plugin-loadRequest', json => { const tab = new PluginTab({}, self._events, json) @@ -46,14 +56,6 @@ module.exports = class RighthandPanel { self._components.pluginManager = new PluginManager(self._opts.pluginAPI, self._events) self._components.tabbedMenu = new TabbedMenu(self._api, self._events) - const compile = new CompileTab(self._api, self._events, self._opts) - const run = new RunTab(self._api, self._events, self._opts) - const settings = new SettingsTab(self._api, self._events, self._opts) - const analysis = new AnalysisTab(self._api, self._events, self._opts) - const debug = new DebuggerTab(self._api, self._events, self._opts) - const support = new SupportTab(self._api, self._events, self._opts) - const test = new TestTab(self._api, self._events, self._opts) - self._view.dragbar = yo`
` self._view.element = yo`