aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-12-10 18:25:23 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-12-11 13:58:14 -0500
commita918dc8aacb8461321c332f6f3b5756bdda5e8b2 (patch)
tree0824e7f8d49426f510a0982954b1d48be6cc5de8 /src/effects.js
parentaa0e4aadd56002928d429af771b26114493486ac (diff)
downloadjquery-a918dc8aacb8461321c332f6f3b5756bdda5e8b2.tar.gz
jquery-a918dc8aacb8461321c332f6f3b5756bdda5e8b2.zip
Pass style declarations around for performance improvements and paving the way for the css array signature
Also, simplify the jQuery.css numeric coercion signature
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects.js b/src/effects.js
index da680f0b6..3d9ae7f4b 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -420,11 +420,11 @@ Tween.propHooks = {
return tween.elem[ tween.prop ];
}
- // passing any value as a 4th parameter to .css will automatically
+ // passing a non 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, false, "" );
+ result = jQuery.css( tween.elem, tween.prop, "auto" );
// Empty strings, null, undefined and "auto" are converted to 0.
return !result || result === "auto" ? 0 : result;
},