aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-11-03 19:53:22 +0100
committerMichał Gołębiowski <m.goleb@gmail.com>2014-12-08 21:12:33 +0100
commit90d7cc1d8b2ea7ac75f0eacb42439349c9c73278 (patch)
tree3302e3fce03076b1fe3e91eedba671be42bade69 /src/effects.js
parenta467f8653a6fab2903148df80ab0ce9f5f4fd04f (diff)
downloadjquery-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.js')
-rw-r--r--src/effects.js27
1 files changed, 9 insertions, 18 deletions
diff --git a/src/effects.js b/src/effects.js
index 189658163..42a9684b8 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -4,7 +4,6 @@ define([
"./css/var/cssExpand",
"./css/var/isHidden",
"./css/defaultDisplay",
- "./effects/support",
"./core/init",
"./effects/Tween",
@@ -12,7 +11,7 @@ define([
"./css",
"./deferred",
"./traversing"
-], function( jQuery, pnum, cssExpand, isHidden, defaultDisplay, support ) {
+], function( jQuery, pnum, cssExpand, isHidden, defaultDisplay ) {
var
fxNow, timerId,
@@ -177,26 +176,17 @@ function defaultPrefilter( elem, props, opts ) {
jQuery._data( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
-
- // inline-level elements accept inline-block;
- // block-level elements need to be inline with layout
- if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {
- style.display = "inline-block";
- } else {
- style.zoom = 1;
- }
+ style.display = "inline-block";
}
}
if ( opts.overflow ) {
style.overflow = "hidden";
- if ( !support.shrinkWrapBlocks() ) {
- anim.always(function() {
- style.overflow = opts.overflow[ 0 ];
- style.overflowX = opts.overflow[ 1 ];
- style.overflowY = opts.overflow[ 2 ];
- });
- }
+ anim.always(function() {
+ style.overflow = opts.overflow[ 0 ];
+ style.overflowX = opts.overflow[ 1 ];
+ style.overflowY = opts.overflow[ 2 ];
+ });
}
// show/hide pass
@@ -320,7 +310,8 @@ function Animation( elem, properties, options ) {
}
var currentTime = fxNow || createFxNow(),
remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
- // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
+ // Support: Android 2.3
+ // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
temp = remaining / animation.duration || 0,
percent = 1 - temp,
index = 0,