Created
September 4, 2012 02:45
-
-
Save bittersweetryan/3615979 to your computer and use it in GitHub Desktop.
new cleanDiv function
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
var cleanDiv = function(){ | |
return $.Deferred(function(dfd){ | |
//otherwise fade the dive out before removing the children | |
$tweetDiv.fadeOut('slow',function(){ | |
$tweetDiv.children().remove(); | |
dfd.resolve(); | |
}); | |
}).promise(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment