mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(scroll): minor tweak to make unit tests happy
This commit is contained in:
2
js/angular/controller/scrollController.js
vendored
2
js/angular/controller/scrollController.js
vendored
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user