mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Removed unused local variable levelsClimbed
Variable `levelsClimbed` was not used at all and is now removed. Local variable `levelsClimbed` in `scrollController#anchorScroll`
This commit is contained in:
3
js/angular/controller/scrollController.js
vendored
3
js/angular/controller/scrollController.js
vendored
@@ -152,12 +152,11 @@ function($scope,
|
||||
return;
|
||||
}
|
||||
var curElm = elm;
|
||||
var scrollLeft = 0, scrollTop = 0, levelsClimbed = 0;
|
||||
var scrollLeft = 0, scrollTop = 0;
|
||||
do {
|
||||
if (curElm !== null) scrollLeft += curElm.offsetLeft;
|
||||
if (curElm !== null) scrollTop += curElm.offsetTop;
|
||||
curElm = curElm.offsetParent;
|
||||
levelsClimbed++;
|
||||
} while (curElm.attributes != self.element.attributes && curElm.offsetParent);
|
||||
scrollView.scrollTo(scrollLeft, scrollTop, !!shouldAnimate);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user