Skip to content

Instantly share code, notes, and snippets.

@OscarGodson
Created April 21, 2013 19:03
Show Gist options
  • Save OscarGodson/5430643 to your computer and use it in GitHub Desktop.
Save OscarGodson/5430643 to your computer and use it in GitHub Desktop.
SomeClass({
handleRequest: function () {
ajax({
onSuccess: function (req) {
if (req.status == 'error') return;
// Blah
}
});
}
});
SomeClass({
handleRequest: function () {
ajax({
onSuccess: function (req) {
if (req.status == 'error') return;
else {
// Blah
}
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment