File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 28
28
interval : null , // num milliseconds to cycle panels.
29
29
selected : 0 ,
30
30
domReady : function ( ) {
31
- // TODO: use onMutation to watch for children updates.
31
+ this . childrenUpdated ( ) ;
32
+ this . startCycler ( ) ;
33
+ } ,
34
+ childrenUpdated : function ( observer , mutations ) {
32
35
this . panels = Array . prototype . slice . call (
33
36
this . $ . content . getDistributedNodes ( ) ) ;
34
37
35
- this . startCycler ( ) ;
38
+ this . onMutation ( this , this . childrenUpdated ) ;
36
39
} ,
37
40
next : function ( opt_Index , opt_backwards ) {
38
41
var backwards = opt_backwards == true ;
Original file line number Diff line number Diff line change 28
28
interval : null , // num milliseconds to cycle panels.
29
29
selected : 0 ,
30
30
domReady : function ( ) {
31
- // TODO: use onMutation to watch for children updates.
31
+ this . childrenUpdated ( ) ;
32
+ this . startCycler ( ) ;
33
+ } ,
34
+ childrenUpdated : function ( observer , mutations ) {
32
35
this . panels = Array . prototype . slice . call (
33
36
this . $ . content . getDistributedNodes ( ) ) ;
34
37
35
- this . startCycler ( ) ;
38
+ this . onMutation ( this , this . childrenUpdated ) ;
36
39
} ,
37
40
next : function ( opt_Index , opt_backwards ) {
38
41
var backwards = opt_backwards == true ;
You can’t perform that action at this time.
0 commit comments