Skip to content

Commit b629f09

Browse files
author
Henrik jJaven
committed
removed override
1 parent 9293541 commit b629f09

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

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

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Doo.define(
5757
}
5858
return data
5959
}
60+
6061
getIndex(row) {
6162
let idx = this.data.rows.findIndex((item, i) => {
6263
if (item.id === row.key) {
@@ -79,38 +80,17 @@ Doo.define(
7980
}
8081

8182
run() {
82-
8383
this.clear()
8484
this.data.rows = this.buildData()
8585
this.renderTable()
86-
8786
}
8887

89-
add() {
90-
this.data.rows = this.data.rows.concat(this.buildData())
91-
this.renderTable(this.data.rows, this.data.rows.length)
92-
}
9388
add() {
9489
let startRow = this.data.rows.length
9590
this.data.rows = this.data.rows.concat(this.buildData())
9691
this.renderTable(this.data.rows, startRow)
97-
9892
}
9993

100-
renderTable(dataSet=this.data[this.defaultDataSet], start=0) {
101-
// debugger
102-
let len = dataSet.length - start
103-
let elem = document.createElement('tbody')
104-
elem.innerHTML = this.renderNode(this.place[0], dataSet, start , len)
105-
let tableRows = elem.querySelectorAll('tr')
106-
let newElem
107-
for (let i=0;i<len;i++) {
108-
newElem = this.place[0].appendChild(tableRows.item(i))
109-
newElem.key = dataSet[i].id
110-
}
111-
}
112-
113-
11494
runLots() {
11595
this.clear()
11696
this.data.rows = this.buildData(10000)

0 commit comments

Comments
 (0)