staugaard/sproutcore-resource — pull request #15 by jish (2011-10-11 19:09:28+00:00)
Title: Giving custom errorHandlers access to the SC.Resource model.

Gives you access to `model` in your custom `errorHandler` methods.
1. `this` will refer to the model object.
2. `model` will be passed as the last argument

function errorHandler() {
this; // the model
}

function errorHandler(jqXHR, textStatus, errorThrown, model) {
model; // another way to reference the model
}

/cc @staugaard, @shajith