修改ionic图标闪烁需要修改2个位置
第一个位置,ionic.bundle.js中47917,47918,注掉这两行,代码如下
ionic.DomUtil.cachedAttr($element, 'nav-bar-transition', viewData.navBarTransition);
ionic.DomUtil.cachedAttr($element, 'nav-bar-direction', viewData.direction);
if (navBarTransition.shouldAnimate && viewData.renderEnd) {
navBarAttr(enteringHeaderBar, 'stage');
} else {
//navBarAttr(enteringHeaderBar, 'entering');
//navBarAttr(leavingHeaderBar, 'leaving');
}
enteringHeaderBarCtrl.resetBackButton(viewData);
navBarTransition.run(0);
第二个位置, ionic-angular.js中5879, 5880,注掉这两行,代码如下
ionic.DomUtil.cachedAttr($element, 'nav-bar-transition', viewData.navBarTransition);
ionic.DomUtil.cachedAttr($element, 'nav-bar-direction', viewData.direction);
if (navBarTransition.shouldAnimate && viewData.renderEnd) {
navBarAttr(enteringHeaderBar, 'stage');
} else {
//navBarAttr(enteringHeaderBar, 'entering');
//navBarAttr(leavingHeaderBar, 'leaving');
}
enteringHeaderBarCtrl.resetBackButton(viewData);
navBarTransition.run(0);