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:
Ali Ok
2015-05-05 13:50:35 +02:00
parent 4e74ead5f8
commit 418cc11e6f

View File

@@ -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);
});