Skip to content

Commit

Permalink
Remove unused __needFullRefresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Jun 9, 2017
1 parent 22d27aa commit bdbbfa1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/elements/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@
this.__itemsIdxToInstIdx = {};
this.__chunkCount = null;
this.__lastChunkTime = null;
this.__needFullRefresh = false;
this.__sortFn = null;
this.__filterFn = null;
this.__observePaths = null;
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand All @@ -448,7 +444,6 @@
let paths = this.__observePaths;
for (let i=0; i<paths.length; i++) {
if (path.indexOf(paths[i]) === 0) {
this.__needFullRefresh = true;
this.__debounceRender(this.__render, this.delay);
return true;
}
Expand Down Expand Up @@ -477,7 +472,6 @@
*/
render() {
// Queue this repeater, then flush all in order
this.__needFullRefresh = true;
this.__debounceRender(this.__render);
Polymer.flush();
}
Expand Down Expand Up @@ -611,7 +605,7 @@
if (itemsIdx == parseInt(itemsIdx, 10)) {
let itemSubPath = dot < 0 ? '' : itemsPath.substring(dot+1);
// If the path is observed, it will trigger a full refresh
this.__handleObservedPaths(itemSubPath)
this.__handleObservedPaths(itemSubPath);
// Note, even if a rull refresh is triggered, always do the path
// notification because unless mutableData is used for dom-repeat
// and all elements in the instance subtree, a full refresh may
Expand Down

0 comments on commit bdbbfa1

Please sign in to comment.