refactor(scroll): minor tweak to make unit tests happy

This commit is contained in:
Perry Govier
2014-07-24 12:27:42 -05:00
parent 74711cbc36
commit 4e6ba5b818
2 changed files with 2 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $loca
if(curElm !== null)scrollTop += curElm.offsetTop;
curElm = curElm.offsetParent;
levelsClimbed++;
} while (curElm.attributes != self.element.attributes && curElm.offsetParent !== null);
} while (curElm.attributes != self.element.attributes && curElm.offsetParent);
scrollView.scrollTo(scrollLeft, scrollTop, !!shouldAnimate);
});
};