Created
May 4, 2012 01:53
-
-
Save ccapndave/2591228 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
| deferreds = [] | |
| for torch in results | |
| dfd = new $.Deferred() | |
| do (dfd) -> | |
| torch.populateUsers (populatedTorch) -> | |
| dfd.resolve() | |
| deferreds.push dfd.promise() | |
| $.when.apply(null, deferreds).done -> | |
| console.log 'DONE THANKS TO EVILTWIN!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment