mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-24 06:17:55 -05:00
better method names
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user