diff --git a/elements/animation/g-animation-group.html b/elements/animation/g-animation-group.html index 1b03347..53c6696 100644 --- a/elements/animation/g-animation-group.html +++ b/elements/animation/g-animation-group.html @@ -59,7 +59,7 @@ this.doOnChildren(function(c) { c.completeApply(); }); - window.dirtyCheck(); + Platform.flush(); this.super(arguments); }, onAnimationChange: function(inEvent, inSender) { diff --git a/elements/animation/g-animation.html b/elements/animation/g-animation.html index b15136a..27f54e8 100644 --- a/elements/animation/g-animation.html +++ b/elements/animation/g-animation.html @@ -137,7 +137,7 @@ play: function() { // TODO: need to dirty check to make sure all side effects are // applied before playing the animation. - window.dirtyCheck(); + Platform.flush(); this.completeApply(); //this.animation && console.log('play', this.animation); if (this.animation) { diff --git a/elements/g-panels.html b/elements/g-panels.html index 509987b..72dbd60 100644 --- a/elements/g-panels.html +++ b/elements/g-panels.html @@ -198,7 +198,7 @@ }, canSelect: function(inIndex) { var canSelect = true; - // TODO(sorvell): dirtyCheck before we sent the canSelect event since + // TODO(sorvell): Platform.flush(); before we sent the canSelect event since // it's likely that the decision needs to rely on binding state. // consider doing this in g-component.send. Platform.flush(); @@ -326,8 +326,8 @@ } else if (e.keyCode == LEFT_ARROW_KEY) { this.previous(); } - // TODO(sorvell): dirtyCheck so we know syncronously if index changed. - dirtyCheck(); + // TODO(sorvell): Platform.flush() so we know syncronously if index changed. + Platform.flush(); if (this.index != oldIndex) { e.cancelBubble = true; this.focus(); diff --git a/elements/g-togglebutton.html b/elements/g-togglebutton.html index bad8dd9..419021e 100644 --- a/elements/g-togglebutton.html +++ b/elements/g-togglebutton.html @@ -62,11 +62,11 @@ this.$.toggle.classList.remove('dragging'); this.value = Math.abs(this.x) < this.w / 2; // make valueChanged calls immediately - dirtyCheck(); + Platform.flush(); }, flick: function(e) { this.value = e.xVelocity > 0; - dirtyCheck(); + Platform.flush(); } });