aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/adjustCSS.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/css/adjustCSS.js')
-rw-r--r--src/css/adjustCSS.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/css/adjustCSS.js b/src/css/adjustCSS.js
index f1d1f00ce..ded3a1666 100644
--- a/src/css/adjustCSS.js
+++ b/src/css/adjustCSS.js
@@ -10,8 +10,12 @@ function adjustCSS( elem, prop, valueParts, tween ) {
scale = 1,
maxIterations = 20,
currentValue = tween ?
- function() { return tween.cur(); } :
- function() { return jQuery.css( elem, prop, "" ); },
+ function() {
+ return tween.cur();
+ } :
+ function() {
+ return jQuery.css( elem, prop, "" );
+ },
initial = currentValue(),
unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),