Skip to content

Commit 6fb0274

Browse files
committed
Set panels in childrenUpdated and add mutation observer.
1 parent 2d010be commit 6fb0274

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

0.5/elements/feature-carousel.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@
2828
interval: null, // num milliseconds to cycle panels.
2929
selected: 0,
3030
domReady: function() {
31-
this.panels = Array.prototype.slice.call(
32-
this.$.content.getDistributedNodes());
33-
34-
this.onMutation(this, this.childrenUpdated);
31+
this.childrenUpdated();
3532
this.startCycler();
3633
},
3734
childrenUpdated: function(observer, mutations) {

0.8/elements/feature-carousel.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@
2828
interval: null, // num milliseconds to cycle panels.
2929
selected: 0,
3030
domReady: function() {
31-
this.panels = Array.prototype.slice.call(
32-
this.$.content.getDistributedNodes());
33-
34-
this.onMutation(this, this.childrenUpdated);
31+
this.childrenUpdated();
3532
this.startCycler();
3633
},
3734
childrenUpdated: function(observer, mutations) {

0 commit comments

Comments
 (0)