Created
February 11, 2013 16:10
-
-
Save unscriptable/4755409 to your computer and use it in GitHub Desktop.
This file contains 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 dfd, p1; | |
dfd = defer(); | |
p1 = dfd.promise; | |
p1.then(null, function () { console.log('onRejected 1 failed'); }); | |
p1.then(null, function () { console.log('onRejected 2 failed'); }); | |
dfd.reject('wat'); | |
// what will be the ouptut? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The question was more like this:
thanks to the twitter convo I know the output will be: