nicer again

This commit is contained in:
Alex Graul
2011-10-29 16:19:04 -04:00
parent 79eea1dc3c
commit afc2d99b46

View File

@@ -1147,8 +1147,8 @@
// Wrap an optional error callback with a fallback error event.
var wrapError = function(onError, model, options) {
return function(resp_or_model, possible_resp) {
var resp = resp_or_model === model ? possible_resp : resp_or_model;
return function(model, resp) {
var resp = model === model ? resp : model;
if (onError) {
onError(model, resp, options);
} else {