File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 76
76
}
77
77
}
78
78
79
+ var fired = false
79
80
wrappedCallback = function ( event ) {
80
81
if ( typeof event !== 'undefined' ) {
81
82
if ( event . target !== event . currentTarget ) return // makes sure the event didn't bubble from "below"
82
83
$ ( event . target ) . unbind ( endEvent , wrappedCallback )
83
84
}
85
+ fired = true
84
86
$ ( this ) . css ( cssReset )
85
87
callback && callback . call ( this )
86
88
}
87
- if ( duration > 0 ) this . bind ( endEvent , wrappedCallback )
89
+ if ( duration > 0 ) {
90
+ this . bind ( endEvent , wrappedCallback )
91
+ //transitionEnd not always fired on some android phones
92
+ setTimeout ( function ( ) {
93
+ if ( fired ) return
94
+ that . each ( function ( ) { wrappedCallback . call ( this ) } )
95
+ } , duration * 1000 )
96
+ }
88
97
89
98
// trigger page reflow so new elements can animate
90
99
this . size ( ) && this . get ( 0 ) . clientLeft
You can’t perform that action at this time.
0 commit comments