Skip to content
Browse files

Subset.recalculate was stopping after the first change was applied.

  • Loading branch information...
1 parent 7fbcd4b commit 8a970720f9668862894e08150f747df77c9d25c7 @garbelini committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 backbone.subset.js
View
2 backbone.subset.js
@@ -115,7 +115,7 @@
// re-evaluate each model's eligibility
changed = _.result(this, 'parent').reduce(function (changed, model) {
- return changed || self._updateModelMembership(model, {silent: true});
+ return self._updateModelMembership(model, {silent: true}) || changed;
}, false);
// only trigger reset event if the subset actually changed

0 comments on commit 8a97072

Please sign in to comment.
Something went wrong with that request. Please try again.