Skip to content

Commit

Permalink
Merge pull request jashkenas#721 from TrisMcC/fix-model-trigger
Browse files Browse the repository at this point in the history
Trigger error on originalModel not model
  • Loading branch information
tbranyen committed Nov 8, 2011
2 parents f9ae1a1 + da51087 commit d9f4479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@
if (onError) {
onError(model, resp, options);
} else {
model.trigger('error', model, resp, options);
originalModel.trigger('error', model, resp, options);
}
};
};
Expand Down

0 comments on commit d9f4479

Please sign in to comment.