Skip to content

Commit c1ba7fa

Browse files
committed
Merge branch 'hman61-DooHTML-DOM-v0.92.2-beta'
2 parents 1d90ca5 + ed3c091 commit c1ba7fa

File tree

4 files changed

+6
-19
lines changed

4 files changed

+6
-19
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,13 @@ Doo.define(
5757
}
5858
return data
5959
}
60-
getIndex(row) {
61-
return this.data.rows.findIndex((item, i) => item.id === row.key)
62-
}
6360

6461
delete(elem) {
6562
let row = this.getParentRow(elem)
6663
if (row) {
67-
let idx = this.getIndex(row)
6864
this.tbody.removeChild(row)
69-
if (idx !== undefined && idx !== -1) {
70-
this.data.rows.splice(idx,1)
65+
if (row.key !== undefined) {
66+
this.data.rows.splice(row,1)
7167
}
7268
}
7369
}

frameworks/keyed/doohtml-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-framework-benchmark-doohtml",
3-
"version": "0.92.1",
3+
"version": "0.92.2",
44
"description": "DooHTML-DOM (no shadow) JS-Benchmark",
55
"main": "Main.class.js",
66
"js-framework-benchmark": {

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,13 @@ Doo.define(
6060
}
6161
return data
6262
}
63-
getIndex(row) {
64-
let idx = this.data.rows.findIndex((item, i) => {
65-
if (item.id === row.key) {
66-
return i
67-
}
68-
})
69-
return idx
70-
}
7163

7264
delete(elem) {
7365
let row = this.getParentRow(elem)
7466
if (row) {
75-
let idx = this.getIndex(row)
7667
this.tbody.removeChild(row)
77-
if (idx !== undefined) {
78-
this.data.rows.splice(idx,1)
68+
if (row.key !== undefined) {
69+
this.data.rows.splice(row.key,1)
7970
}
8071
}
8172
}

frameworks/keyed/doohtml/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-framework-benchmark-doohtml",
3-
"version": "0.92.1",
3+
"version": "0.92.2",
44
"description": "DooHTML JS-Benchmark",
55
"main": "Main.class.js",
66
"js-framework-benchmark": {

0 commit comments

Comments
 (0)