Created
July 30, 2012 20:16
-
-
Save andrewberls/3209812 to your computer and use it in GitHub Desktop.
Nested functions
This file contains 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
@fadeWith = (sound, duration) -> | |
return @ if !supported | |
@fadeOut duration, -> | |
@stop() | |
sound.play().fadeIn(duration) | |
return @ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment