Skip to content

Instantly share code, notes, and snippets.

Last active June 22, 2016 14:37
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save knownasilya/9472916 to your computer and use it in GitHub Desktop.
RSVP jquery ajax wrapper
function ajax(url, options) {
return new Ember.RSVP.Promise(function (resolve, reject) {
options = options || {};
options.url = url;
options.success = function (data) {, resolve, data);
options.error = function () {, reject, arguments);
Copy link

vvscode commented May 17, 2016

@knownasilya what for used run ?

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