Permalink
Browse files

Merge pull request #2039 from adriaanlabusc/silent_fire_patch

removed one if statement from model.set to simplify #2038
  • Loading branch information...
braddunbar committed Dec 28, 2012
2 parents 9bbdf4f + 22bcb99 commit 1cff00a621c4d808f713fe18aa95bbab87a27cd1
Showing with 1 addition and 2 deletions.
  1. +1 −2 backbone.js
View
@@ -333,10 +333,9 @@
unset ? delete current[attr] : current[attr] = val;
}
- if (!silent && changes.length) this._pending = true;
-
// Trigger all relevant attribute changes.
if (!silent) {
+ if (changes.length) this._pending = true;
for (var i = 0, l = changes.length; i < l; i++) {
this.trigger('change:' + changes[i], this, current[changes[i]], options);
}

0 comments on commit 1cff00a

Please sign in to comment.