Skip to content

Instantly share code, notes, and snippets.

@erichocean
Created September 18, 2008 18:04
Show Gist options
  • Save erichocean/11451 to your computer and use it in GitHub Desktop.
Save erichocean/11451 to your computer and use it in GitHub Desktop.
isFlashVisible: NO,
_isFlashVisible: NO, // for animation
isFlashVisibleBinding: 'OI.flashController.firstMessage',
isFlashVisibleBindingDefault: SC.Binding.Bool,
isFlashVisibleObserver: function () {
if ( !this._wrapperAnimation ) {
this._wrapperAnimation = Animator.apply( SC.page.get('wrapper').rootElement, "top: 0px;", { duration: 200 });
}
if ( this.isFlashVisible != this._isFlashVisible ) {
this._isFlashVisible = this.isFlashVisible;
this._wrapperAnimation.toggle();
}
}.observes('isFlashVisible')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment