fix(scrollView): fix null pointer exception on scrollbar

This commit is contained in:
Andrew
2014-12-01 10:58:12 -07:00
parent bba9e795ca
commit 037d2c368e

View File

@@ -990,7 +990,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
}
if (height !== self.__indicatorY.size) {
ionic.requestAnimationFrame(function(){
self.__indicatorY.indicator.style.height = height + 'px';
self.__indicatorY && (self.__indicatorY.indicator.style.height = height + 'px');
});
}
self.__indicatorY.size = height;