Skip to content

Instantly share code, notes, and snippets.

@thanpolas
Created March 14, 2013 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thanpolas/5161714 to your computer and use it in GitHub Desktop.
Save thanpolas/5161714 to your computer and use it in GitHub Desktop.
promises "resolve" !== "fullfill"
var def1 = when.defer();
var def2 = when.defer();
def1.promise.then(function( arg1 ) {
arg1 === def2.promise;
});
def1.resolve(def2.promise);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment