@@ -201,100 +201,44 @@ Slim.element(
201
201
static useShadow = false ;
202
202
203
203
deleteOne ( item ) {
204
- store . delete ( item . id ) ;
204
+ this . store . delete ( item . id ) ;
205
205
this . items = store . data ;
206
206
}
207
207
208
208
selectOne ( item ) {
209
- console . time ( 'select1' ) ;
210
209
this . selected = item ;
211
- console . timeEnd ( 'select1' ) ;
212
- }
213
-
214
- create1k ( ) {
215
- store . clear ( ) ;
216
- store . run ( 1000 ) ;
217
- this . items = [ ...store . data ] ;
218
- }
219
-
220
- append1k ( ) {
221
- console . time ( 'append1k' ) ;
222
- store . add ( 1000 ) ;
223
- this . items = [ ...store . data ] ;
224
- console . timeEnd ( 'append1k' ) ;
225
- }
226
-
227
- update10 ( ) {
228
- console . time ( 'update10' ) ;
229
- store . update ( ) ;
230
- this . items = [ ...store . data ] ;
231
- console . timeEnd ( 'update10' ) ;
232
- }
233
-
234
- testClear ( ) {
235
- console . time ( 'clear' ) ;
236
- store . clear ( ) ;
237
- this . items = [ ...store . data ] ;
238
- console . timeEnd ( 'clear' ) ;
239
- }
240
-
241
- create10k ( ) {
242
- performance . mark ( 'create10kstart' ) ;
243
- store . runLots ( ) ;
244
- this . items = [ ...store . data ] ;
245
- performance . mark ( 'create10kend' ) ;
246
- console . log (
247
- performance . measure ( 'create10k' , 'create10kstart' , 'create10kend' )
248
- ) ;
249
- }
250
-
251
- swap ( ) {
252
- store . swapRows ( ) ;
253
- this . items = [ ...store . data ] ;
254
210
}
255
211
256
212
update10 ( ) {
257
- console . time ( 'update10' ) ;
258
213
this . store . update ( ) ;
259
214
this . items = this . store . data ;
260
- console . timeEnd ( 'update10' ) ;
261
215
}
262
216
263
217
testClear ( ) {
264
- console . time ( 'clear' ) ;
265
218
this . store . clear ( ) ;
266
219
this . items = this . store . data ;
267
- console . timeEnd ( 'clear' ) ;
268
220
}
269
221
270
222
append1k ( ) {
271
- console . time ( 'append1k' ) ;
272
223
this . store . add ( 1000 ) ;
273
224
this . items = this . store . data ;
274
- console . timeEnd ( 'append1k' ) ;
275
225
}
276
226
277
227
swap ( ) {
278
- console . time ( 'swap' ) ;
279
228
this . store . swapRows ( ) ;
280
229
this . items = this . store . data ;
281
- console . timeEnd ( 'swap' ) ;
282
230
}
283
231
284
232
create10k ( ) {
285
- console . time ( 'create10k' ) ;
286
233
this . store . clear ( ) ;
287
234
this . store . runLots ( ) ;
288
235
this . items = this . store . data ;
289
- console . timeEnd ( 'create10k' ) ;
290
236
}
291
237
292
238
create1k ( ) {
293
- console . time ( 'create1k' ) ;
294
239
this . store . clear ( ) ;
295
240
this . store . run ( 1000 ) ;
296
241
this . items = this . store . data ;
297
- console . timeEnd ( 'create1k' ) ;
298
242
}
299
243
}
300
244
) ;
0 commit comments