Skip to content

Instantly share code, notes, and snippets.

@joefiorini
Created February 19, 2014 04:03
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 joefiorini/9085865 to your computer and use it in GitHub Desktop.
Save joefiorini/9085865 to your computer and use it in GitHub Desktop.
RSVP.Promise.prototype.returnStatus = function() {
this.then(function() {
return 0;
}).catch(function() {
return 1;
});
return this;
}
@stefanpenner
Copy link

u can also just return on line 2

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