Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
fix(ui-scroll): 'newitems' is not defined.
Browse files Browse the repository at this point in the history
Must be a typo
  • Loading branch information
douglasduteil committed Dec 29, 2013
1 parent 3fd7fc4 commit 796e310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/scroll/ui-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ angular.module('ui.scroll', []).directive('ngScrollViewport', [
};
if (angular.isArray(newItems)) {
_results = [];
for (j = _k = 0, _len2 = newitems.length; _k < _len2; j = ++_k) {
item = newitems[j];
for (j = _k = 0, _len2 = newItems.length; _k < _len2; j = ++_k) {
item = newItems[j];
_results.push(inserted.push(insert(i + j, item)));
}
return _results;
Expand Down

0 comments on commit 796e310

Please sign in to comment.