Skip to content

Commit

Permalink
fixes issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
MeTaNoV committed Mar 6, 2017
1 parent 1650ee1 commit 80a67b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dom-repeat-n.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@
}
// Remove any extra instances from previous state
var limit = this._instances.length;
for (i=newCount; i<limit; i++) {
this._detachAndRemoveInstance(i);
for (i=limit-1; i>newCount-1; i--) {
this._detachAndRemoveInstance(i);
}
this._debounceTemplate(this._render);
this.fire('dom-change');
Expand Down

0 comments on commit 80a67b3

Please sign in to comment.