File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ Doo.define(
51
51
}
52
52
53
53
buildData ( count = DEFAULT_SIZE ) {
54
- const data = [ ]
54
+ const data = new Array ( count )
55
55
for ( let i = 0 ; i < count ; i ++ ) {
56
- data . push ( { id : this . ID ++ , label : adjectives [ _random ( lenA ) ] + " " + colours [ _random ( lenB ) ] + " " + nouns [ _random ( lenC ) ] } )
56
+ data [ i ] = { id : this . ID ++ , label : ` ${ adjectives [ _random ( lenA ) ] } ${ colours [ _random ( lenB ) ] } ${ nouns [ _random ( lenC ) ] } ` }
57
57
}
58
58
return data
59
59
}
Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ Doo.define(
54
54
}
55
55
56
56
buildData ( count = DEFAULT_SIZE ) {
57
- const data = [ ]
57
+ const data = new Array ( count )
58
58
for ( let i = 0 ; i < count ; i ++ ) {
59
- data . push ( { id : this . ID ++ , label : adjectives [ _random ( lenA ) ] + " " + colours [ _random ( lenB ) ] + " " + nouns [ _random ( lenC ) ] } )
59
+ data [ i ] = { id : this . ID ++ , label : ` ${ adjectives [ _random ( lenA ) ] } ${ colours [ _random ( lenB ) ] } ${ nouns [ _random ( lenC ) ] } ` }
60
60
}
61
61
return data
62
62
}
Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ Doo.define(
53
53
}
54
54
55
55
buildData ( count = DEFAULT_SIZE ) {
56
- const data = [ ]
56
+ const data = new Array ( count )
57
57
for ( let i = 0 ; i < count ; i ++ ) {
58
- data . push ( { id : this . ID ++ , label : adjectives [ _random ( lenA ) ] + " " + colours [ _random ( lenB ) ] + " " + nouns [ _random ( lenC ) ] } )
58
+ data [ i ] = { id : this . ID ++ , label : ` ${ adjectives [ _random ( lenA ) ] } ${ colours [ _random ( lenB ) ] } ${ nouns [ _random ( lenC ) ] } ` }
59
59
}
60
60
return data
61
61
}
You can’t perform that action at this time.
0 commit comments