Skip to content

Commit ee24f65

Browse files
committed
Make direct push over concat
1 parent 8c961b9 commit ee24f65

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frameworks/non-keyed/sprae-safe/src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ sprae(document.getElementById('main'), {
4545
},
4646

4747
add() {
48-
// this.rows.push(...buildData(1000))
49-
this.rows = this.rows.concat(buildData(1000))
48+
this.rows.push(...buildData(1000))
49+
// this.rows = this.rows.concat(buildData(1000))
5050
this.selected = null
5151
},
5252

frameworks/non-keyed/sprae/src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ sprae(document.getElementById('main'), {
4141
},
4242

4343
add() {
44-
// this.rows.push(...buildData(1000))
45-
this.rows = this.rows.concat(buildData(1000))
44+
this.rows.push(...buildData(1000))
45+
// this.rows = this.rows.concat(buildData(1000))
4646
this.selected = null
4747
},
4848

0 commit comments

Comments
 (0)