Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tridungle/0d3d3f39b1a5f791e10cc9e0572e04cb to your computer and use it in GitHub Desktop.
Save tridungle/0d3d3f39b1a5f791e10cc9e0572e04cb to your computer and use it in GitHub Desktop.
Create a jQuery Promise from a Parse promise
Parse.Promise.prototype.toJqueryPromise = function() {
var def = jQuery.Deferred();
this.then(
def.resolve.bind(def),
def.reject.bind(def)
);
return def.promise();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment