diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2014-11-03 19:53:22 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2014-12-08 21:12:33 +0100 |
commit | 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278 (patch) | |
tree | 3302e3fce03076b1fe3e91eedba671be42bade69 /src/effects | |
parent | a467f8653a6fab2903148df80ab0ce9f5f4fd04f (diff) | |
download | jquery-90d7cc1d8b2ea7ac75f0eacb42439349c9c73278.tar.gz jquery-90d7cc1d8b2ea7ac75f0eacb42439349c9c73278.zip |
Misc: Drop support for older browsers; update support comments
That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks
for old Blackberry.
Fixes gh-1836
Fixes gh-1701
Refs gh-1815
Refs gh-1820
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/support.js | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/effects/support.js b/src/effects/support.js deleted file mode 100644 index c3ba17b5f..000000000 --- a/src/effects/support.js +++ /dev/null @@ -1,54 +0,0 @@ -define([ - "../var/support" -], function( support ) { - -(function() { - var shrinkWrapBlocksVal; - - support.shrinkWrapBlocks = function() { - if ( shrinkWrapBlocksVal != null ) { - return shrinkWrapBlocksVal; - } - - // Will be changed later if needed. - shrinkWrapBlocksVal = false; - - // Minified: var b,c,d - var div, body, container; - - body = document.getElementsByTagName( "body" )[ 0 ]; - if ( !body || !body.style ) { - // Test fired too early or in an unsupported environment, exit. - return; - } - - // Setup - div = document.createElement( "div" ); - container = document.createElement( "div" ); - container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; - body.appendChild( container ).appendChild( div ); - - // Support: IE6 - // Check if elements with layout shrink-wrap their children - 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;" + - "box-sizing:content-box;display:block;margin:0;border:0;" + - "padding:1px;width:1px;zoom:1"; - div.appendChild( document.createElement( "div" ) ).style.width = "5px"; - shrinkWrapBlocksVal = div.offsetWidth !== 3; - } - - body.removeChild( container ); - - return shrinkWrapBlocksVal; - }; - -})(); - -return support; - -}); |