diff --git a/js/angular/service/collectionRepeatDataSource.js b/js/angular/service/collectionRepeatDataSource.js index 89949bd1165..803aba374ca 100644 --- a/js/angular/service/collectionRepeatDataSource.js +++ b/js/angular/service/collectionRepeatDataSource.js @@ -160,7 +160,7 @@ function($cacheFactory, $parse, $rootScope) { var i, len, img, src; for (i = 0, len = imgNodes.length; i < len; i++) { img = imgNodes[i]; - var src = img.src; + src = img.src; img.src = ONE_PX_TRANSPARENT_IMG_SRC; img.src = src; } diff --git a/js/angular/service/collectionRepeatManager.js b/js/angular/service/collectionRepeatManager.js index 1f039e22606..3a5dceca7ef 100644 --- a/js/angular/service/collectionRepeatManager.js +++ b/js/angular/service/collectionRepeatManager.js @@ -251,6 +251,7 @@ function($rootScope, $timeout) { * the data source to render the correct items into the DOM. */ render: function(shouldRedrawAll) { + var i; var self = this; var isOutOfBounds = (this.currentIndex >= this.dataSource.getLength()); // We want to remove all the items and redraw everything if we're out of bounds @@ -276,7 +277,7 @@ function($rootScope, $timeout) { renderStartIndex = this.addRowsToIndex(startIndex, -this.bufferSize); // Keep rendering items, adding them until we are past the end of the visible scroll area - var i = renderStartIndex; + i = renderStartIndex; while ((rect = this.dimensions[i]) && (rect.primaryPos - rect.primarySize < viewportBottom) && this.dimensions[i + 1]) { i++;