We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08efc5b commit b1ae271Copy full SHA for b1ae271
js/jquery.mobile.navigation.js
@@ -111,11 +111,11 @@ define( [
111
/* exposed $.mobile methods */
112
113
//animation complete callback
114
+ var animationEndEvent = "WebKitTransitionEvent" in window ? "webkitAnimationEnd" : "animationend";
115
$.fn.animationComplete = function( callback ) {
116
if ( $.support.cssTransitions ) {
- return $( this ).one( "webkitAnimationEnd animationend", callback );
117
- }
118
- else{
+ return $( this ).one( animationEndEvent, callback );
+ } else {
119
// defer execution for consistency between webkit/non webkit
120
setTimeout( callback, 0 );
121
return $( this );
0 commit comments