Skip to content

Commit d06cd49

Browse files
author
Henrik jJaven
committed
improved add
1 parent bcadb7f commit d06cd49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frameworks/non-keyed/doohtml/js/Main.class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ Doo.define(
7474
this.renderTable()
7575
}
7676
add() {
77-
let startRow = this.data.rows.length
77+
let start = this.data.rows.length
7878
this.data.rows = this.data.rows.concat(this.buildData())
79-
this.renderTable(this.data.rows, startRow)
79+
this.append(this.data.rows.slice(start), this.tbody, start)
8080
}
8181

8282
runLots() {

0 commit comments

Comments
 (0)