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

This commit is contained in:
Jeremy Ashkenas
2012-02-27 14:56:21 -05:00
parent 5ef4921c54
commit dca02ecab7

View File

@@ -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);