From 2f088cb2e3054e6a1e64e648dbabd9623a3a35a8 Mon Sep 17 00:00:00 2001 From: Mat Marquis Date: Thu, 5 Jan 2012 16:12:46 -0500 Subject: [PATCH] Updated page transition scripting/support test to allow for Firefox. --- js/jquery.mobile.navigation.js | 2 +- js/jquery.mobile.support.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 3dfcf31c..18dca9be 100755 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -561,7 +561,7 @@ define( [ //animation complete callback $.fn.animationComplete = function( callback ) { if( $.support.cssTransitions ) { - return $( this ).one( 'webkitAnimationEnd', callback ); + return $( this ).one( 'webkitAnimationEnd animationend', callback ); } else{ // defer execution for consistency between webkit/non webkit diff --git a/js/jquery.mobile.support.js b/js/jquery.mobile.support.js index 62e5311b..8c84354b 100644 --- a/js/jquery.mobile.support.js +++ b/js/jquery.mobile.support.js @@ -77,7 +77,11 @@ $.mobile.browser.ie = (function() { $.extend( $.support, { orientation: "orientation" in window && "onorientationchange" in window, touch: "ontouchend" in document, - cssTransitions: "WebKitTransitionEvent" in window, + cssTransitions: "WebKitTransitionEvent" in window || (function() { + var div = document.createElement( "div" ); + div.setAttribute('style', '-moz-transition: height 100ms linear'); + return !!div.style.MozTransition; + })(), pushState: "pushState" in history && "replaceState" in history, mediaquery: $.mobile.media( "only all" ), cssPseudoElement: !!propExists( "content" ),