Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Nov 5, 2015
1 parent 680c56d commit c5e1135
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/template/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
var c = this.collection;
// Choose rendering path: full vs. incremental using splices
if (this._needFullRefresh) {
// Full refresh when items, sort, filter change or render() called
// Full refresh when items, sort, or filter change, or when render() called
this._applyFullRefresh();
this._needFullRefresh = false;
} else if (this._keySplices.length) {
Expand Down Expand Up @@ -652,8 +652,7 @@
};
model[this.as] = this.collection.getItem(key);
model[this.indexAs] = idx;
var inst = this.stamp(model);
return inst;
return this.stamp(model);
},

_upgradePlaceholder: function(idx, key) {
Expand Down

0 comments on commit c5e1135

Please sign in to comment.