Skip to content

Instantly share code, notes, and snippets.

@bittersweetryan
Created July 27, 2012 15:34
Show Gist options
  • Select an option

  • Save bittersweetryan/3188703 to your computer and use it in GitHub Desktop.

Select an option

Save bittersweetryan/3188703 to your computer and use it in GitHub Desktop.
$.when(a())
.then(b);
var a = function(){
return $.Deferred(function(dfd){
//do something
dfd.resolve;
}).promise();
}
@foxwoods
Copy link

line 7 should be:
dfd.resolve();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment