Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
252840fb
Commit
252840fb
authored
Jun 07, 2018
by
serapath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testTab: fix indentation of constructor
parent
0e38fb34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
test-tab.js
src/app/tabs/test-tab.js
+14
-16
No files found.
src/app/tabs/test-tab.js
View file @
252840fb
...
@@ -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>`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment