remove uneeded use of appAPI

pull/3094/head
yann300 7 years ago
parent 23b436326c
commit 91691f47b3
  1. 4
      src/app/panels/righthand-panel.js

@ -23,7 +23,7 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) {
self._view.dragbar = yo`<div id="dragbar" class=${css.dragbar}></div>`
// 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)

Loading…
Cancel
Save