Commit 252840fb authored by serapath's avatar serapath

testTab: fix indentation of constructor

parent 0e38fb34
...@@ -8,25 +8,23 @@ function append (container, txt) { ...@@ -8,25 +8,23 @@ function append (container, txt) {
container.appendChild(child) container.appendChild(child)
} }
function testTab (api = {}, events = {}, opts = {}) { const prototype = {
let el = prototype.render(api) constructor: function testTab (api = {}, events = {}, opts = {}) {
let gitterIsLoaded = false let el = prototype.render(api)
let gitterIsLoaded = false
events.app.register('tabChanged', (tabName) => {
if (tabName !== 'test' || gitterIsLoaded) {
return
}
yo.update(el, prototype.render(api)) events.app.register('tabChanged', (tabName) => {
el.style.display = 'block' if (tabName !== 'test' || gitterIsLoaded) {
gitterIsLoaded = true return
}) }
return { render () { return el } } yo.update(el, prototype.render(api))
} el.style.display = 'block'
gitterIsLoaded = true
})
const prototype = { return { render () { return el } }
constructor: testTab, },
render: function render (api) { render: function render (api) {
var container = yo`<div class="tests" id="tests"></div>` var container = yo`<div class="tests" id="tests"></div>`
......
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