mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-20 04:18:11 -05:00
Fixes #1053 -- updating comment to reflect changed style of validate()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user