Created
March 26, 2010 03:12
-
-
Save emk/344447 to your computer and use it in GitHub Desktop.
Mysteriously failing SC.Animatable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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