diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-02-10 13:11:34 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-02-10 13:11:34 +0000 |
commit | 51c338b9edc14fe5b05138f3fc4093c4459c30ea (patch) | |
tree | 8aca5bf29e7a100fb3869a7f181653df1dab9c2c /ui/effects.scale.js | |
parent | 2e0f967680447e93e04eea2764f53ea3977b4f5f (diff) | |
download | jquery-ui-51c338b9edc14fe5b05138f3fc4093c4459c30ea.tar.gz jquery-ui-51c338b9edc14fe5b05138f3fc4093c4459c30ea.zip |
all: fixed jslint warnings
Diffstat (limited to 'ui/effects.scale.js')
-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 e6309fd6c..f03de1ad1 100644 --- a/ui/effects.scale.js +++ b/ui/effects.scale.js @@ -22,7 +22,7 @@ $.effects.puff = function(o) { // Set options 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 + var percent = parseInt(o.options.percent,10) || 150; // Set default puff percent options.fade = true; // It's not a puff if it doesn't fade! :) var original = {height: el.height(), width: el.width()}; // Save original @@ -52,7 +52,7 @@ $.effects.scale = function(o) { // Set options 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 percent = parseInt(o.options.percent,10) || (parseInt(o.options.percent,10) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent var direction = o.options.direction || 'both'; // Set default axis var origin = o.options.origin; // The origin of the scaling if (mode != 'effect') { // Set default origin and restore for show/hide |