diff options
Diffstat (limited to 'libs/bower_components/jquery/src/support.js')
-rw-r--r-- | libs/bower_components/jquery/src/support.js | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/libs/bower_components/jquery/src/support.js b/libs/bower_components/jquery/src/support.js index 4728be8125..71ac60f19a 100644 --- a/libs/bower_components/jquery/src/support.js +++ b/libs/bower_components/jquery/src/support.js @@ -1,11 +1,11 @@ -define([ +define( [ "./core", - "./var/strundefined", "./var/support", + "./var/document", "./core/init", // Needed for hasOwn support test // This is listed as a dependency for build order, but it's still optional in builds "./core/ready" -], function( jQuery, strundefined, support ) { +], function( jQuery, support, document ) { // Support: IE<9 // Iteration over object's inherited properties before its own @@ -13,19 +13,21 @@ var i; for ( i in jQuery( support ) ) { break; } -support.ownLast = i !== "0"; +support.ownFirst = i === "0"; // Note: most support tests are defined in their respective modules. // false until the test is run support.inlineBlockNeedsLayout = false; // Execute ASAP in case we need to set body.style.zoom -jQuery(function() { +jQuery( function() { + // Minified: var a,b,c,d var val, div, body, container; body = document.getElementsByTagName( "body" )[ 0 ]; if ( !body || !body.style ) { + // Return for frameset docs that don't have a body return; } @@ -36,7 +38,8 @@ jQuery(function() { container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; body.appendChild( container ).appendChild( div ); - if ( typeof div.style.zoom !== strundefined ) { + if ( typeof div.style.zoom !== "undefined" ) { + // Support: IE<8 // Check if natively block-level elements act like inline-block // elements when setting their display to 'inline' and giving @@ -45,6 +48,7 @@ jQuery(function() { support.inlineBlockNeedsLayout = val = div.offsetWidth === 3; if ( val ) { + // Prevent IE 6 from affecting layout for positioned elements #11048 // Prevent IE from shrinking the body in IE 7 mode #12869 // Support: IE<8 @@ -53,6 +57,7 @@ jQuery(function() { } body.removeChild( container ); -}); +} ); -}); +return support; +} ); |