Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

getting rid of reset if no models are sent

  • Loading branch information...
commit b7c9918431b324229d6840228af69054e7dcd546 1 parent 26328a9
Pau Ramon Revilla authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 backbone.subset.js
5 backbone.subset.js
View
@@ -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);
};
Please sign in to comment.
Something went wrong with that request. Please try again.