diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-01-15 23:09:35 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-01-15 23:34:22 -0500 |
commit | 10cc33e27beb56e41bea1274bc3b51b1c59af9af (patch) | |
tree | c0831dedb86da9f755073bfde5fb140e81bcd7bc /src/effects.js | |
parent | 86278d40ae86ecd45786eebcb20b72564f2bb53f (diff) | |
download | jquery-10cc33e27beb56e41bea1274bc3b51b1c59af9af.tar.gz jquery-10cc33e27beb56e41bea1274bc3b51b1c59af9af.zip |
Fix #13183: Wrong animation initial value calc. Ref gh-1136.
Diffstat (limited to 'src/effects.js')
-rw-r--r-- | src/effects.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects.js b/src/effects.js index 1eee0a991..e1c11dca5 100644 --- a/src/effects.js +++ b/src/effects.js @@ -418,11 +418,11 @@ Tween.propHooks = { return tween.elem[ tween.prop ]; } - // passing a non empty string as a 3rd parameter to .css will automatically + // passing an empty string as a 3rd parameter to .css will automatically // attempt a parseFloat and fallback to a string if the parse fails // so, simple values such as "10px" are parsed to Float. // complex values such as "rotate(1rad)" are returned as is. - result = jQuery.css( tween.elem, tween.prop, "auto" ); + result = jQuery.css( tween.elem, tween.prop, "" ); // Empty strings, null, undefined and "auto" are converted to 0. return !result || result === "auto" ? 0 : result; }, |