Skip to content

Commit

Permalink
style(collectionRepeat): fix jshint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Feb 10, 2015
1 parent b49444c commit 9dbef80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/angular/service/collectionRepeatDataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion js/angular/service/collectionRepeatManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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++;
Expand Down

0 comments on commit 9dbef80

Please sign in to comment.