Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eavichay committed May 21, 2017
1 parent 15950c3 commit 2680a85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,7 @@ Slim.__initRepeater = function () {
key: 'renderList',
value: function renderList() {
if (!this.sourceNode) return;
this.sourceData.registerSlimRepeater(this);
if (this.clones && this.clones.length >= this.sourceData.length) {
this.updateExistingList();
var leftovers = this.clones.splice(this.sourceData.length);
Expand All @@ -1365,8 +1366,6 @@ Slim.__initRepeater = function () {

var targetPropName = this.getAttribute('target-attr');
var offset = this.clones.length;

sourceData.registerSlimRepeater(this);
sourceData.forEach(function (dataItem, index) {
var clone = _this8.sourceNode.cloneNode(true);
clone.removeAttribute('slim-repeat');
Expand Down
Loading

0 comments on commit 2680a85

Please sign in to comment.