mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-16 12:21:12 +00:00
Updated page transition scripting/support test to allow for Firefox.
This commit is contained in:
parent
57c6b968cd
commit
2f088cb2e3
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue