Permalink
Browse files

fix: 日期icon点击不消除其他日历bug

  • Loading branch information...
1 parent 1a9b7e0 commit 7e954bcab4183bf18c16b84cbebef578828b3398 Boyuzhou committed Dec 5, 2016
Showing with 7 additions and 4 deletions.
  1. +7 −4 js/neoui-yearmonth.js
View
@@ -191,10 +191,13 @@ const YearMonth = BaseComponent.extend({
newPage.addEventListener('webkitTransitionEnd', cleanup);
}
//ie9 requestAnimationFrame兼容问题
- requestAnimationFrame(function() {
- addClass(this.contentPage, 'is-hidden');
- removeClass(newPage, 'zoom-in');
- }.bind(this));
+ if(requestAnimationFrame){
+ requestAnimationFrame(function() {
+ addClass(this.contentPage, 'is-hidden');
+ removeClass(newPage, 'zoom-in');
+ }.bind(this));
+ }
+
},

0 comments on commit 7e954bc

Please sign in to comment.