Created
July 30, 2013 23:08
-
-
Save kinsteronline/6117872 to your computer and use it in GitHub Desktop.
hiding package li with recursion
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
removeSlice = offersOnScreen.slice(-offerPackagesPerPage).toArray() | |
removePackage = (pkgs) -> | |
pkg = pkgs.pop() | |
if pkg | |
$(pkg).fadeOut 100, -> | |
$(this).remove() | |
removePackage(pkgs) | |
removePackage(removeSlice) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment