From c5e11351e35afcc3e6e00a6c26a28eb8dbcf9d0d Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 4 Nov 2015 18:20:55 -0800 Subject: [PATCH] Simplify --- src/lib/template/dom-repeat.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/template/dom-repeat.html b/src/lib/template/dom-repeat.html index d8234b7f91..b8ff7c8862 100644 --- a/src/lib/template/dom-repeat.html +++ b/src/lib/template/dom-repeat.html @@ -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) { @@ -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) {