From 0b21506ec2e93cdc38742540c906f51e6317aee0 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 4 Nov 2015 19:54:06 -0800 Subject: [PATCH] Minor cleanup. --- 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 dd3d42b9f0..9568efc4dd 100644 --- a/src/lib/template/dom-repeat.html +++ b/src/lib/template/dom-repeat.html @@ -315,9 +315,8 @@ // Simple auto chunkSize throttling algorithm based on feedback loop: // measure actual time between frames and scale chunk count by ratio // of target/actual frame time - var lastChunkTime = this._lastChunkTime; var currChunkTime = performance.now(); - var ratio = this._targetFrameTime / (currChunkTime - lastChunkTime); + var ratio = this._targetFrameTime / (currChunkTime - this._lastChunkTime); this._chunkCount = Math.round(this._chunkCount * ratio) || 1; this._limit += this._chunkCount; this._lastChunkTime = currChunkTime; @@ -668,7 +667,7 @@ } else { inst = this._stampInstance(idx, key); } - var beforeRow = this._instances[idx + 1 ]; + var beforeRow = this._instances[idx + 1]; var beforeNode = beforeRow && !beforeRow.isPlaceholder ? beforeRow._children[0] : this; var parentNode = Polymer.dom(this).parentNode; Polymer.dom(parentNode).insertBefore(inst.root, beforeNode);