File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ Doo.define(
59
59
return data
60
60
}
61
61
getIndex ( row ) {
62
- return this . data . rows . findIndex ( ( item , i ) => item . id === row . key )
62
+ return this . data . rows . findIndex ( ( item ) => item . id === row . key )
63
63
}
64
64
65
65
delete ( elem ) {
@@ -92,9 +92,8 @@ Doo.define(
92
92
}
93
93
94
94
update ( ) {
95
- const bang = ' !!!'
96
95
for ( let i = 0 , len = this . data . rows . length ; i < len ; i += 10 ) {
97
- this . tbody . childNodes [ i ] . childNodes [ 1 ] . childNodes [ 0 ] . firstChild . textContent = this . data . rows [ i ] . label = `${ this . data . rows [ i ] . label } ${ bang } `
96
+ this . tbody . childNodes [ i ] . childNodes [ 1 ] . childNodes [ 0 ] . firstChild . nodeValue = this . data . rows [ i ] . label = `${ this . data . rows [ i ] . label } ${ BANG } `
98
97
}
99
98
}
100
99
@@ -105,7 +104,7 @@ Doo.define(
105
104
}
106
105
107
106
if ( elem ) {
108
- let row = this . getParentRow ( elem )
107
+ const row = this . getParentRow ( elem )
109
108
if ( row ) {
110
109
this . selectedRow = row
111
110
row . className = DANGER
@@ -114,7 +113,7 @@ Doo.define(
114
113
}
115
114
116
115
clear ( ) {
117
- this . tbody . textContent = ''
116
+ this . tbody . nodeValue = ''
118
117
this . data . rows = [ ]
119
118
}
120
119
Original file line number Diff line number Diff line change @@ -101,10 +101,9 @@ Doo.define(
101
101
}
102
102
103
103
update ( ) {
104
- const bang = ' !!!'
105
104
for ( let i = 0 , len = this . data . rows . length ; i < len ; i += 10 ) {
106
105
this . data . rows [ i ] . label += BANG
107
- this . tbody . childNodes [ i ] . childNodes [ 1 ] . childNodes [ 0 ] . firstChild . textContent = this . data . rows [ i ] . label
106
+ this . tbody . childNodes [ i ] . childNodes [ 1 ] . childNodes [ 0 ] . firstChild . nodeValue = this . data . rows [ i ] . label
108
107
}
109
108
}
110
109
@@ -124,7 +123,7 @@ Doo.define(
124
123
}
125
124
126
125
clear ( ) {
127
- this . tbody . textContent = ''
126
+ this . tbody . nodeValue = ''
128
127
this . data . rows = [ ]
129
128
}
130
129
You can’t perform that action at this time.
0 commit comments