Skip to content

Commit

Permalink
Fixes jashkenas#674 -- pass options through to validate()
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Nov 23, 2011
1 parent 1332246 commit 4185341
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 @@ -399,7 +399,7 @@
// if all is well. If a specific `error` callback has been passed,
// call that instead of firing the general `"error"` event.
_performValidation : function(attrs, options) {
var error = this.validate(attrs);
var error = this.validate(attrs, options);
if (error) {
if (options.error) {
options.error(this, error, options);
Expand Down

0 comments on commit 4185341

Please sign in to comment.