From bdbbfa1978c6ddb9e8fd411130e6adf7ce5f80de Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Thu, 8 Jun 2017 17:29:30 -0700 Subject: [PATCH] Remove unused `__needFullRefresh` --- lib/elements/dom-repeat.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/elements/dom-repeat.html b/lib/elements/dom-repeat.html index 81c841caba..e1f42f1fe7 100644 --- a/lib/elements/dom-repeat.html +++ b/lib/elements/dom-repeat.html @@ -281,7 +281,6 @@ this.__itemsIdxToInstIdx = {}; this.__chunkCount = null; this.__lastChunkTime = null; - this.__needFullRefresh = false; this.__sortFn = null; this.__filterFn = null; this.__observePaths = null; @@ -370,7 +369,6 @@ let methodHost = this.__getMethodHost(); this.__sortFn = sort && (typeof sort == 'function' ? sort : function() { return methodHost[sort].apply(methodHost, arguments); }); - this.__needFullRefresh = true; if (this.items) { this.__debounceRender(this.__render); } @@ -380,7 +378,6 @@ let methodHost = this.__getMethodHost(); this.__filterFn = filter && (typeof filter == 'function' ? filter : function() { return methodHost[filter].apply(methodHost, arguments); }); - this.__needFullRefresh = true; if (this.items) { this.__debounceRender(this.__render); } @@ -436,7 +433,6 @@ if (!this.__handleItemPath(change.path, change.value)) { // Otherwise, the array was reset ('items') or spliced ('items.splices'), // so queue a full refresh - this.__needFullRefresh = true; this.__initializeChunking(); this.__debounceRender(this.__render); } @@ -448,7 +444,6 @@ let paths = this.__observePaths; for (let i=0; i