Skip to content

Commit

Permalink
Merge pull request jashkenas#2148 from quartzmo/patch-1
Browse files Browse the repository at this point in the history
Fixed comment for Model#_validate
  • Loading branch information
jashkenas committed Jan 16, 2013
2 parents 1f91852 + 4aaf3b8 commit 65bb188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@
},

// Run validation against the next complete set of model attributes,
// returning `true` if all is well. Otherwise, fire a general
// `"error"` event and call the error callback, if specified.
// returning `true` if all is well. Otherwise, fire an
// `"invalid"` event and call the invalid callback, if specified.
_validate: function(attrs, options) {
if (!options.validate || !this.validate) return true;
attrs = _.extend({}, this.attributes, attrs);
Expand Down

0 comments on commit 65bb188

Please sign in to comment.