Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

getting rid of reset if no models are sent

  • Loading branch information...
commit b7c9918431b324229d6840228af69054e7dcd546 1 parent 26328a9
Pau Ramon Revilla authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 backbone.subset.js
5 backbone.subset.js
@@ -36,7 +36,10 @@
36 36 }
37 37
38 38 this._reset();
39   - this.reset(models || this.parent().models, {silent: true});
  39 +
  40 + if (models) {
  41 + this.reset(models, {silent: true});
  42 + }
40 43 this.initialize.apply(this, arguments);
41 44 };
42 45

0 comments on commit b7c9918

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