Skip to content

Instantly share code, notes, and snippets.

@etozzato
Created May 9, 2014 19:44
Show Gist options
  • Save etozzato/64bb775e084a448384c9 to your computer and use it in GitHub Desktop.
Save etozzato/64bb775e084a448384c9 to your computer and use it in GitHub Desktop.
this.get('model').save().then(function() {
return console.log("OK");
}).catch(function() {
return console.log("KO");
});
@etozzato
Copy link
Author

etozzato commented May 9, 2014

$E
Object {readyState: 4, getResponseHeader: function, getAllResponseHeaders: function, setRequestHeader: function, overrideMimeType: function…}
$E.status
200
$E.state()
"rejected"
$E.responseText
" "

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