Skip to content

Commit

Permalink
getting rid of reset if no models are sent
Browse files Browse the repository at this point in the history
  • Loading branch information
masylum committed Feb 6, 2012
1 parent 26328a9 commit b7c9918
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backbone.subset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down

0 comments on commit b7c9918

Please sign in to comment.