Skip to content

Commit

Permalink
Fixes jashkenas#1806, model.save(null, {wait: true}) with validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Nov 19, 2012
1 parent dd59ae6 commit c746c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@
options = options ? _.clone(options) : {};

// If we're "wait"-ing to set changed attributes, validate early.
if (options.wait) {
if (attrs && options.wait) {
if (!this._validate(attrs, options)) return false;
current = _.clone(this.attributes);
}
Expand Down

0 comments on commit c746c3c

Please sign in to comment.