{"comment":{"created_at":"2011-10-13T00:11:15Z","body":"@staugaard renamed model to resource, and added a test to verify.","updated_at":"2011-10-13T00:11:15Z","url":"https://api.github.com/repos/staugaard/sproutcore-resource/issues/comments/2389844","id":2389844,"user":{"avatar_url":"https://secure.gravatar.com/avatar/5632e68f9ba2d7fbeb7c11042ab57aab?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jish","id":1817,"login":"jish"}},"action":"created","issue":{"number":15,"created_at":"2011-10-11T19:09:28Z","pull_request":{"diff_url":"https://github.com/staugaard/sproutcore-resource/pull/15.diff","patch_url":"https://github.com/staugaard/sproutcore-resource/pull/15.patch","html_url":"https://github.com/staugaard/sproutcore-resource/pull/15"},"body":"Gives you access to `model` in your custom `errorHandler` methods.\r\n1. `this` will refer to the model object.\r\n2. `model` will be passed as the last argument\r\n\r\n    function errorHandler() {\r\n      this; // the model\r\n    }\r\n\r\n    function errorHandler(jqXHR, textStatus, errorThrown, model) {\r\n      model; // another way to reference the model\r\n    }\r\n\r\n/cc @staugaard, @shajith","comments":2,"title":"Giving custom errorHandlers access to the SC.Resource model.","updated_at":"2011-10-13T00:11:15Z","url":"https://api.github.com/repos/staugaard/sproutcore-resource/issues/15","id":1879832,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/5632e68f9ba2d7fbeb7c11042ab57aab?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jish","id":1817,"login":"jish"},"html_url":"https://github.com/staugaard/sproutcore-resource/issues/15","labels":[],"state":"open"},"legacy":{"issue_id":1879832,"comment_id":2389844}}