diff options
Diffstat (limited to 'libs/bower_components/jquery/src/effects/support.js')
-rw-r--r-- | libs/bower_components/jquery/src/effects/support.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/libs/bower_components/jquery/src/effects/support.js b/libs/bower_components/jquery/src/effects/support.js index 3ef7261d50..22d4ecb2e9 100644 --- a/libs/bower_components/jquery/src/effects/support.js +++ b/libs/bower_components/jquery/src/effects/support.js @@ -1,9 +1,9 @@ -define([ - "../var/strundefined", - "../var/support" -], function( strundefined, support ) { +define( [ + "../var/support", + "../var/document" +], function( support, document ) { -(function() { +( function() { var shrinkWrapBlocksVal; support.shrinkWrapBlocks = function() { @@ -19,6 +19,7 @@ define([ body = document.getElementsByTagName( "body" )[ 0 ]; if ( !body || !body.style ) { + // Test fired too early or in an unsupported environment, exit. return; } @@ -31,9 +32,11 @@ define([ // Support: IE6 // Check if elements with layout shrink-wrap their children - if ( typeof div.style.zoom !== strundefined ) { + if ( typeof div.style.zoom !== "undefined" ) { + // Reset CSS: box-sizing; display; margin; border div.style.cssText = + // Support: Firefox<29, Android 2.3 // Vendor-prefix box-sizing "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" + @@ -48,8 +51,8 @@ define([ return shrinkWrapBlocksVal; }; -})(); +} )(); return support; -}); +} ); |