Skip to content

Commit bdbbfa1

Browse files
author
Steven Orvell
committed
Remove unused __needFullRefresh
1 parent 22d27aa commit bdbbfa1

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

lib/elements/dom-repeat.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@
281281
this.__itemsIdxToInstIdx = {};
282282
this.__chunkCount = null;
283283
this.__lastChunkTime = null;
284-
this.__needFullRefresh = false;
285284
this.__sortFn = null;
286285
this.__filterFn = null;
287286
this.__observePaths = null;
@@ -370,7 +369,6 @@
370369
let methodHost = this.__getMethodHost();
371370
this.__sortFn = sort && (typeof sort == 'function' ? sort :
372371
function() { return methodHost[sort].apply(methodHost, arguments); });
373-
this.__needFullRefresh = true;
374372
if (this.items) {
375373
this.__debounceRender(this.__render);
376374
}
@@ -380,7 +378,6 @@
380378
let methodHost = this.__getMethodHost();
381379
this.__filterFn = filter && (typeof filter == 'function' ? filter :
382380
function() { return methodHost[filter].apply(methodHost, arguments); });
383-
this.__needFullRefresh = true;
384381
if (this.items) {
385382
this.__debounceRender(this.__render);
386383
}
@@ -436,7 +433,6 @@
436433
if (!this.__handleItemPath(change.path, change.value)) {
437434
// Otherwise, the array was reset ('items') or spliced ('items.splices'),
438435
// so queue a full refresh
439-
this.__needFullRefresh = true;
440436
this.__initializeChunking();
441437
this.__debounceRender(this.__render);
442438
}
@@ -448,7 +444,6 @@
448444
let paths = this.__observePaths;
449445
for (let i=0; i<paths.length; i++) {
450446
if (path.indexOf(paths[i]) === 0) {
451-
this.__needFullRefresh = true;
452447
this.__debounceRender(this.__render, this.delay);
453448
return true;
454449
}
@@ -477,7 +472,6 @@
477472
*/
478473
render() {
479474
// Queue this repeater, then flush all in order
480-
this.__needFullRefresh = true;
481475
this.__debounceRender(this.__render);
482476
Polymer.flush();
483477
}
@@ -611,7 +605,7 @@
611605
if (itemsIdx == parseInt(itemsIdx, 10)) {
612606
let itemSubPath = dot < 0 ? '' : itemsPath.substring(dot+1);
613607
// If the path is observed, it will trigger a full refresh
614-
this.__handleObservedPaths(itemSubPath)
608+
this.__handleObservedPaths(itemSubPath);
615609
// Note, even if a rull refresh is triggered, always do the path
616610
// notification because unless mutableData is used for dom-repeat
617611
// and all elements in the instance subtree, a full refresh may

0 commit comments

Comments
 (0)