better method names

This commit is contained in:
Alex Graul
2011-10-29 16:16:02 -04:00
parent 970ce0762c
commit 79eea1dc3c

View File

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