Created
April 24, 2015 18:02
-
-
Save jkup/892a5dbac6ac00627a95 to your computer and use it in GitHub Desktop.
Why would you do this?
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
(function() { | |
var foo = new $.Deferred(); | |
function bar() { | |
doSomething(); | |
foo.resolve(); | |
} | |
$.when(foo).then(function() { | |
doSomethingElse(); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment