pass opts to child

pull/1/head
yann300 7 years ago
parent 50e7bb9d7a
commit 622dabc74f
  1. 12
      src/app/panels/righthand-panel.js

@ -43,17 +43,17 @@ function RighthandPanel (appAPI = {}, events = {}, opts = {}) {
events.rhp = self.event
var compileTab = new CompileTab(appAPI, events)
var compileTab = new CompileTab(appAPI, events, opts)
optionViews.appendChild(compileTab.render())
var runTab = new RunTab(appAPI, events)
var runTab = new RunTab(appAPI, events, opts)
optionViews.appendChild(runTab.render())
var settingsTab = new SettingsTab(appAPI, events)
var settingsTab = new SettingsTab(appAPI, events, opts)
optionViews.appendChild(settingsTab.render())
var analysisTab = new AnalysisTab(appAPI, events)
var analysisTab = new AnalysisTab(appAPI, events, opts)
optionViews.appendChild(analysisTab.render())
var debuggerTab = new DebuggerTab(appAPI, events)
var debuggerTab = new DebuggerTab(appAPI, events, opts)
optionViews.appendChild(debuggerTab.render())
var supportTab = new SupportTab(appAPI, events)
var supportTab = new SupportTab(appAPI, events, opts)
optionViews.appendChild(supportTab.render())
this._view.tabbedMenu.addTab('Compile', 'compileView', optionViews.querySelector('#compileTabView'))
this._view.tabbedMenu.addTab('Run', 'runView', optionViews.querySelector('#runTabView'))

Loading…
Cancel
Save