Skip to content

Instantly share code, notes, and snippets.

@emk
Created March 26, 2010 03:12
Show Gist options
  • Save emk/344447 to your computer and use it in GitHub Desktop.
Save emk/344447 to your computer and use it in GitHub Desktop.
Mysteriously failing SC.Animatable
showNotification: function () {
this.set('isVisible', YES);
this.disableAnimation();
this.adjust('opacity', 1).updateStyle(); // Avoid animation.
this.enableAnimation();
if (this._hideTimer)
this._hideTimer.invalidate();
this._hideTimer = SC.Timer.schedule({
target: this, action: 'hideNotification', interval: 2500
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment