Skip to content

Commit

Permalink
ignore values when unsetting
Browse files Browse the repository at this point in the history
  • Loading branch information
braddunbar committed Nov 10, 2011
1 parent 368953e commit 12b1141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
options || (options = {});
if (!attrs) return this;
if (attrs.attributes) attrs = attrs.attributes;
if (options.unset) for (var attr in attrs) attrs[attr] = void 0;
var now = this.attributes, escaped = this._escapedAttributes;

// Run validation.
Expand Down

0 comments on commit 12b1141

Please sign in to comment.