From 91691f47b3303b0489192b81ca1cafc5329e0259 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 29 Mar 2018 12:00:48 +0200 Subject: [PATCH] remove uneeded use of appAPI --- src/app/panels/righthand-panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/panels/righthand-panel.js b/src/app/panels/righthand-panel.js index 30a3d2235e..1d69eef153 100644 --- a/src/app/panels/righthand-panel.js +++ b/src/app/panels/righthand-panel.js @@ -23,7 +23,7 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) { self._view.dragbar = yo`
` // load tabbed menu component var tabEvents = {compiler: events.compiler, app: events.app, rhp: self.event} - self._view.tabbedMenu = new TabbedMenu(self._api, tabEvents) + self._view.tabbedMenu = new TabbedMenu(appAPI, tabEvents) var options = self._view.tabbedMenu.render() options.classList.add(css.opts) self._view.element = yo` @@ -65,7 +65,7 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) { self.pluginManager = new PluginManager(opts.pluginAPI, events) events.rhp.register('plugin-loadRequest', (json) => { - var tab = new PluginTab(appAPI, events, json) + var tab = new PluginTab({}, events, json) var content = tab.render() optionViews.appendChild(content) this._view.tabbedMenu.addTab(json.title, 'plugin', content)