File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -228,21 +228,21 @@ export class Pager extends PagerBase {
228
228
switch ( args . action ) {
229
229
case ChangeType . Add :
230
230
this . pagerAdapter . notifyItemRangeInserted ( args . index , args . addedCount ) ;
231
- break ;
231
+ return ;
232
232
case ChangeType . Delete :
233
233
this . pagerAdapter . notifyItemRangeRemoved ( args . index , args . removed . length ) ;
234
- break ;
234
+ return ;
235
235
case ChangeType . Splice :
236
236
if ( args . removed . length > 0 ) {
237
237
this . pagerAdapter . notifyItemRangeRemoved ( args . index , args . removed . length ) ;
238
238
}
239
239
if ( args . addedCount > 0 ) {
240
240
this . pagerAdapter . notifyItemRangeInserted ( args . index , args . addedCount ) ;
241
241
}
242
- break ;
242
+ return ;
243
243
case ChangeType . Update :
244
244
this . pagerAdapter . notifyItemChanged ( args . index ) ;
245
- break ;
245
+ return ;
246
246
default :
247
247
break ;
248
248
}
@@ -338,13 +338,10 @@ export class Pager extends PagerBase {
338
338
this . _pagerAdapter = new StaticPagerStateAdapter ( new WeakRef ( this ) ) ;
339
339
nativeView . setAdapter ( this . _pagerAdapter ) ;
340
340
selectedIndexProperty . coerce ( this ) ;
341
- // TODO
342
- // setTimeout(() => {
343
341
nativeView . setCurrentItem ( this . selectedIndex , false ) ;
344
342
if ( this . indicator ) {
345
343
this . indicator . setSelection ( this . selectedIndex ) ;
346
344
}
347
- // }, 0);
348
345
}
349
346
}
350
347
}
You can’t perform that action at this time.
0 commit comments