Permalink
Browse files

getting rid of reset if no models are sent

  • Loading branch information...
1 parent 26328a9 commit b7c9918431b324229d6840228af69054e7dcd546 @masylum committed Feb 6, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 backbone.subset.js
View
5 backbone.subset.js
@@ -36,7 +36,10 @@
}
this._reset();
- this.reset(models || this.parent().models, {silent: true});
+
+ if (models) {
+ this.reset(models, {silent: true});
+ }
this.initialize.apply(this, arguments);
};

0 comments on commit b7c9918

Please sign in to comment.