Created
June 20, 2011 15:31
-
-
Save carlthuringer/1035828 to your computer and use it in GitHub Desktop.
Coffeescript Syntax oddities
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
$('div').live 'pagebeforeshow', (event, ui)-> | |
$('#statistics').height(70) | |
$('#stats-grid-plus-minus a').toggle(-> | |
$(this).parents('#statistics').animate({ height: "170px"}, 500) | |
-> | |
$(this).parents('#statistics').animate({ height: "70px"}, 500) | |
) | |
$('div').live('pagebeforeshow', function(event, ui) { | |
$('#statistics').height(70); | |
return $('#stats-grid-plus-minus a').toggle(function() { | |
return $(this).parents('#statistics').animate({ | |
height: "170px" | |
}, 500); | |
}, function() { | |
return $(this).parents('#statistics').animate({ | |
height: "70px" | |
}, 500); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment