rhp: prepare indentation for class

pull/1/head
serapath 7 years ago committed by yann300
parent ad4c265d90
commit ac90207daa
  1. 9
      src/app/panels/righthand-panel.js

@ -17,7 +17,8 @@ const RunTab = require('../tabs/run-tab')
const EventManager = remixLib.EventManager const EventManager = remixLib.EventManager
const styles = styleguide.chooser() const styles = styleguide.chooser()
function RighthandPanel (api = {}, events = {}, opts = {}) { var prototype = {
constructor: function RighthandPanel (api = {}, events = {}, opts = {}) {
const self = this const self = this
self._api = api self._api = api
self._events = events self._events = events
@ -61,7 +62,7 @@ function RighthandPanel (api = {}, events = {}, opts = {}) {
optionViews.appendChild(debuggerTab.render()) optionViews.appendChild(debuggerTab.render())
const supportTab = new SupportTab(self._api, self._events, self._opts) const supportTab = new SupportTab(self._api, self._events, self._opts)
optionViews.appendChild(supportTab.render()) optionViews.appendChild(supportTab.render())
var testTab = new TestTab(appAPI, events, opts) const testTab = new TestTab(self._api, events, opts)
optionViews.appendChild(testTab.render()) optionViews.appendChild(testTab.render())
this._view.tabbedMenu.addTab('Compile', 'compileView', optionViews.querySelector('#compileTabView')) this._view.tabbedMenu.addTab('Compile', 'compileView', optionViews.querySelector('#compileTabView'))
this._view.tabbedMenu.addTab('Run', 'runView', optionViews.querySelector('#runTabView')) this._view.tabbedMenu.addTab('Run', 'runView', optionViews.querySelector('#runTabView'))
@ -80,9 +81,7 @@ function RighthandPanel (api = {}, events = {}, opts = {}) {
this._view.tabbedMenu.addTab(json.title, 'plugin', content) this._view.tabbedMenu.addTab(json.title, 'plugin', content)
self.pluginManager.register(json, content) self.pluginManager.register(json, content)
}) })
} },
var prototype = {
constructor: RighthandPanel,
render: function () { render: function () {
const self = this const self = this
return self._view.element return self._view.element

Loading…
Cancel
Save