aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2011-11-07 10:46:46 -0500
committertimmywil <timmywillisn@gmail.com>2011-11-07 10:47:09 -0500
commit1e677f30f68d8ea41261aa666a9ba0720383e9d0 (patch)
tree1606f1e49c2a609261ac61cf3fa299cd515d5485 /src/effects.js
parenta7e911b7fe84a35234d4be18102e168c6644e40d (diff)
downloadjquery-1e677f30f68d8ea41261aa666a9ba0720383e9d0.tar.gz
jquery-1e677f30f68d8ea41261aa666a9ba0720383e9d0.zip
Add back unit in the width/height step function. Fixes #10669.
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects.js b/src/effects.js
index 523cd7d29..808635d01 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -620,7 +620,7 @@ jQuery.extend( jQuery.fx, {
// Do not set anything below 0
jQuery.each([ "width", "height" ], function( i, prop ) {
jQuery.fx.step[ prop ] = function( fx ) {
- jQuery.style( fx.elem, prop, Math.max(0, fx.now) );
+ jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
};
});