Skip to content

Commit 2dc3d96

Browse files
author
Henrik jJaven
committed
tuning clearing sequence
1 parent f08a34d commit 2dc3d96

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,11 @@ Doo.define(
114114
run(e) {
115115

116116
Timer.start('tot')
117-
this.clear(e)
118117
this.data.rows = this.buildData()
118+
Timer.start('clear')
119+
this.tbody.textContent = ''
120+
Timer.stop('clear')
121+
119122
this.renderTable()
120123
// e.target.blur()
121124
Timer.start('add')
@@ -156,8 +159,11 @@ Doo.define(
156159

157160
runLots(e) {
158161
Timer.start('tot')
159-
this.clear(e)
160162
this.data.rows = this.buildData(10000)
163+
Timer.start('clear')
164+
this.tbody.textContent = ''
165+
Timer.stop('clear')
166+
161167
this.renderTable()
162168
//e.target.blur()
163169
Timer.start('add')

0 commit comments

Comments
 (0)