Updated page transition scripting/support test to allow for Firefox.

This commit is contained in:
Mat Marquis 2012-01-05 16:12:46 -05:00 committed by scottjehl
parent 57c6b968cd
commit 2f088cb2e3
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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" ),