Skip to content
Permalink
Browse files

fix options clone (#2967)

  • Loading branch information
aaronchi committed Jun 26, 2008
1 parent 14561e4 commit 1c97a16dd3199fe11c08a249783febf5f6d7d0ab
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 1c97a16

Please sign in to comment.
You can’t perform that action at this time.