diff options
author | Aaron Eisenberger <aaronchi@gmail.com> | 2008-06-26 14:24:36 +0000 |
---|---|---|
committer | Aaron Eisenberger <aaronchi@gmail.com> | 2008-06-26 14:24:36 +0000 |
commit | 1c97a16dd3199fe11c08a249783febf5f6d7d0ab (patch) | |
tree | 91ec224dc57eedba70784beed00e237cb3944c83 | |
parent | 14561e4c5ec9bc1d0e9403cc54609d88e536a5e3 (diff) | |
download | jquery-ui-1c97a16dd3199fe11c08a249783febf5f6d7d0ab.tar.gz jquery-ui-1c97a16dd3199fe11c08a249783febf5f6d7d0ab.zip |
fix options clone (#2967)
-rw-r--r-- | ui/effects.scale.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/effects.scale.js b/ui/effects.scale.js index e83bbeefd..ec7421e95 100644 --- a/ui/effects.scale.js +++ b/ui/effects.scale.js @@ -20,7 +20,7 @@ $.effects.puff = function(o) { var el = $(this); // Set options - var options = $.extend(true, {}, o); + var options = $.extend(true, {}, o.options); var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode var percent = parseInt(o.options.percent) || 150; // Set default puff percent options.fade = true; // It's not a puff if it doesn't fade! :) @@ -50,7 +50,7 @@ $.effects.scale = function(o) { var el = $(this); // Set options - var options = $.extend(true, {}, o); + var options = $.extend(true, {}, o.options); var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode var percent = parseInt(o.options.percent) || (parseInt(o.options.percent) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent var direction = o.options.direction || 'both'; // Set default axis |