1
1
// HTML-based displays for lab.js
2
2
import { extend } from 'lodash'
3
- import { Component , status } from './core'
4
- import { domSelect } from './util/domSelect'
5
3
import 'whatwg-fetch'
6
4
5
+ import { Component , status , handMeDowns } from './core'
6
+ import { domSelect } from './util/domSelect'
7
+ import { prepareNested } from './flow'
8
+
7
9
// html.Screens display HTML when run
8
10
export class Screen extends Component {
9
11
constructor ( options ) {
@@ -42,7 +44,7 @@ Screen.metadata = {
42
44
nestedComponents : [ ] ,
43
45
parsableOptions : {
44
46
content : [ 'string' ] ,
45
- }
47
+ } ,
46
48
}
47
49
48
50
// An html.Form can show, validate and serialize a form
@@ -170,9 +172,6 @@ Form.metadata = {
170
172
nestedComponents : [ ] ,
171
173
}
172
174
173
- import { prepareNested } from './flow'
174
- import { handMeDowns } from './core'
175
-
176
175
export class Frame extends Component {
177
176
constructor ( options = { } ) {
178
177
super ( {
@@ -199,7 +198,7 @@ export class Frame extends Component {
199
198
this . internals . contentEndHandler = ( ) => this . end ( )
200
199
this . options . content . on (
201
200
'after:end' ,
202
- this . internals . contentEndHandler
201
+ this . internals . contentEndHandler ,
203
202
)
204
203
205
204
// Prepare content
@@ -222,7 +221,7 @@ export class Frame extends Component {
222
221
// frame and content ending one another
223
222
this . options . content . off (
224
223
'after:end' ,
225
- this . internals . contentEndHandler
224
+ this . internals . contentEndHandler ,
226
225
)
227
226
228
227
// Again, the content is in focus
@@ -240,5 +239,5 @@ Frame.metadata = {
240
239
nestedComponents : [ 'content' ] ,
241
240
parsableOptions : {
242
241
context : [ 'string' ] ,
243
- }
242
+ } ,
244
243
}
0 commit comments