From 796e310a26ac43a248c0c732877242890fdda2be Mon Sep 17 00:00:00 2001 From: Douglas Duteil Date: Thu, 26 Dec 2013 16:18:34 +0100 Subject: [PATCH] fix(ui-scroll): 'newitems' is not defined. Must be a typo --- modules/scroll/ui-scroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/scroll/ui-scroll.js b/modules/scroll/ui-scroll.js index 3c54ac85..1c2f625b 100644 --- a/modules/scroll/ui-scroll.js +++ b/modules/scroll/ui-scroll.js @@ -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;