Created
August 1, 2014 13:11
-
-
Save user24/a225b8874df3299aa3c5 to your computer and use it in GitHub Desktop.
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
// Hide all miniapps. | |
// for promise().done() explanation, see http://api.jquery.com/promise/#example-1 | |
// tldr; if you put a .complete() callback in an animation which matches > 1 element | |
// the callback will be called once per matching element | |
// We don't want that, we want the callback to run once all animations are complete. | |
$('.miniapp').slideUp("fast").promise().done(function runMeWhenAllSlideupsAreComplete() { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment