|
281 | 281 | this.__itemsIdxToInstIdx = {}; |
282 | 282 | this.__chunkCount = null; |
283 | 283 | this.__lastChunkTime = null; |
284 | | - this.__needFullRefresh = false; |
285 | 284 | this.__sortFn = null; |
286 | 285 | this.__filterFn = null; |
287 | 286 | this.__observePaths = null; |
|
370 | 369 | let methodHost = this.__getMethodHost(); |
371 | 370 | this.__sortFn = sort && (typeof sort == 'function' ? sort : |
372 | 371 | function() { return methodHost[sort].apply(methodHost, arguments); }); |
373 | | - this.__needFullRefresh = true; |
374 | 372 | if (this.items) { |
375 | 373 | this.__debounceRender(this.__render); |
376 | 374 | } |
|
380 | 378 | let methodHost = this.__getMethodHost(); |
381 | 379 | this.__filterFn = filter && (typeof filter == 'function' ? filter : |
382 | 380 | function() { return methodHost[filter].apply(methodHost, arguments); }); |
383 | | - this.__needFullRefresh = true; |
384 | 381 | if (this.items) { |
385 | 382 | this.__debounceRender(this.__render); |
386 | 383 | } |
|
436 | 433 | if (!this.__handleItemPath(change.path, change.value)) { |
437 | 434 | // Otherwise, the array was reset ('items') or spliced ('items.splices'), |
438 | 435 | // so queue a full refresh |
439 | | - this.__needFullRefresh = true; |
440 | 436 | this.__initializeChunking(); |
441 | 437 | this.__debounceRender(this.__render); |
442 | 438 | } |
|
448 | 444 | let paths = this.__observePaths; |
449 | 445 | for (let i=0; i<paths.length; i++) { |
450 | 446 | if (path.indexOf(paths[i]) === 0) { |
451 | | - this.__needFullRefresh = true; |
452 | 447 | this.__debounceRender(this.__render, this.delay); |
453 | 448 | return true; |
454 | 449 | } |
|
477 | 472 | */ |
478 | 473 | render() { |
479 | 474 | // Queue this repeater, then flush all in order |
480 | | - this.__needFullRefresh = true; |
481 | 475 | this.__debounceRender(this.__render); |
482 | 476 | Polymer.flush(); |
483 | 477 | } |
|
611 | 605 | if (itemsIdx == parseInt(itemsIdx, 10)) { |
612 | 606 | let itemSubPath = dot < 0 ? '' : itemsPath.substring(dot+1); |
613 | 607 | // If the path is observed, it will trigger a full refresh |
614 | | - this.__handleObservedPaths(itemSubPath) |
| 608 | + this.__handleObservedPaths(itemSubPath); |
615 | 609 | // Note, even if a rull refresh is triggered, always do the path |
616 | 610 | // notification because unless mutableData is used for dom-repeat |
617 | 611 | // and all elements in the instance subtree, a full refresh may |
|
0 commit comments