Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[navigation and transition] Move transition degradation code from nav…

…igation to transition, leaving a noop in place in navigation
  • Loading branch information...
commit 5be320454b454a947583e6ece560eb0596c51d3e 1 parent 522018b
@gabrielschulhof gabrielschulhof authored
Showing with 11 additions and 6 deletions.
  1. +1 −5 js/jquery.mobile.navigation.js
  2. +10 −1 js/jquery.mobile.transition.js
View
6 js/jquery.mobile.navigation.js
@@ -474,12 +474,8 @@ define( [
// bind to scrollstop for the first page as "pagechange" won't be fired in that case
$window.bind( "scrollstop", delayedSetLastScroll );
- // If transition is defined, check if css 3D transforms are supported, and if not, if a fallback is specified
+ // No-op implementation of transition degradation
$.mobile._maybeDegradeTransition = function( transition ) {
- if( transition && !$.support.cssTransform3d && $.mobile.transitionFallbacks[ transition ] ){
- transition = $.mobile.transitionFallbacks[ transition ];
- }
-
return transition;
};
View
11 js/jquery.mobile.transition.js
@@ -150,7 +150,16 @@ $.mobile.transitionHandlers = {
$.mobile.transitionFallbacks = {};
+// If transition is defined, check if css 3D transforms are supported, and if not, if a fallback is specified
+$.mobile._maybeDegradeTransition = function( transition ) {
+ if( transition && !$.support.cssTransform3d && $.mobile.transitionFallbacks[ transition ] ){
+ transition = $.mobile.transitionFallbacks[ transition ];
+ }
+
+ return transition;
+};
+
})( jQuery, this );
//>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
});
-//>>excludeEnd("jqmBuildExclude");
+//>>excludeEnd("jqmBuildExclude");
Please sign in to comment.
Something went wrong with that request. Please try again.