Created
December 27, 2012 18:08
-
-
Save DeTeam/4390494 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
// It JavaScript it's okay to do like that: | |
friend.gift = function(){ | |
var deferred = $.Deferred(); | |
somewhenInFuture(function(gift){ | |
deferred.resolve(gift); | |
}) | |
return deferred.promise(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment