mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Fix comment about invalid event.
This commit is contained in:
@@ -544,8 +544,7 @@
|
||||
},
|
||||
|
||||
// Run validation against the next complete set of model attributes,
|
||||
// returning `true` if all is well. Otherwise, fire an
|
||||
// `"invalid"` event and call the invalid callback, if specified.
|
||||
// returning `true` if all is well. Otherwise, fire an `"invalid"` event.
|
||||
_validate: function(attrs, options) {
|
||||
if (!options.validate || !this.validate) return true;
|
||||
attrs = _.extend({}, this.attributes, attrs);
|
||||
|
||||
Reference in New Issue
Block a user