Commit 66e1abdf authored by yann300's avatar yann300

remove uneeded use of appAPI

parent 761b3584
...@@ -23,7 +23,7 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) { ...@@ -23,7 +23,7 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) {
self._view.dragbar = yo`<div id="dragbar" class=${css.dragbar}></div>` self._view.dragbar = yo`<div id="dragbar" class=${css.dragbar}></div>`
// load tabbed menu component // load tabbed menu component
var tabEvents = {compiler: events.compiler, app: events.app, rhp: self.event} 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() var options = self._view.tabbedMenu.render()
options.classList.add(css.opts) options.classList.add(css.opts)
self._view.element = yo` self._view.element = yo`
...@@ -65,7 +65,7 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) { ...@@ -65,7 +65,7 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) {
self.pluginManager = new PluginManager(opts.pluginAPI, events) self.pluginManager = new PluginManager(opts.pluginAPI, events)
events.rhp.register('plugin-loadRequest', (json) => { events.rhp.register('plugin-loadRequest', (json) => {
var tab = new PluginTab(appAPI, events, json) var tab = new PluginTab({}, events, json)
var content = tab.render() var content = tab.render()
optionViews.appendChild(content) optionViews.appendChild(content)
this._view.tabbedMenu.addTab(json.title, 'plugin', content) this._view.tabbedMenu.addTab(json.title, 'plugin', content)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment