Created
December 9, 2014 02:13
-
-
Save devdays/8b003561a08f9348bf25 to your computer and use it in GitHub Desktop.
Object JavaScript - Promise using Q
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
Q.delay(2000) | |
.then(function () { | |
alert('super!'); | |
}, function () { | |
alert('something went wrong'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment