Permalink
Browse files

Fixes #1053 -- updating comment to reflect changed style of validate()

  • Loading branch information...
1 parent 5ef4921 commit dca02ecab7736e708b3abbbb3236d0aa2a910fb7 @jashkenas jashkenas committed Feb 27, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 backbone.js
View
6 backbone.js
@@ -483,9 +483,9 @@
return !this.validate(this.attributes);
},
- // Run validation against a set of incoming attributes, returning `true`
- // if all is well. If a specific `error` callback has been passed,
- // call that instead of firing the general `"error"` event.
+ // Run validation against the next complete set of model attributes,
+ // returning `true` if all is well. If a specific `error` callback has
+ // been passed, call that instead of firing the general `"error"` event.
_validate: function(attrs, options) {
if (options.silent || !this.validate) return true;
attrs = _.extend({}, this.attributes, attrs);

0 comments on commit dca02ec

Please sign in to comment.