Skip to content

Commit

Permalink
fixes previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Nov 19, 2012
1 parent c746c3c commit 0b27091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@
options = options ? _.clone(options) : {};

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

Expand Down

0 comments on commit 0b27091

Please sign in to comment.