aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.scale.js
diff options
context:
space:
mode:
authorgnarf <gnarf@gnarf.net>2011-06-21 01:15:42 -0500
committergnarf <gnarf@gnarf.net>2011-06-21 01:18:11 -0500
commit65a6c46e5568c43a9df9505e23da6a766814557e (patch)
tree63087dadabc63382d06c369062644fc64d252f5f /ui/jquery.effects.scale.js
parent1c1a3b1a361d90a73755fbd038b3cdfb0960c29f (diff)
downloadjquery-ui-65a6c46e5568c43a9df9505e23da6a766814557e.tar.gz
jquery-ui-65a6c46e5568c43a9df9505e23da6a766814557e.zip
Effects.*: Style Guidance
Diffstat (limited to 'ui/jquery.effects.scale.js')
-rw-r--r--ui/jquery.effects.scale.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/jquery.effects.scale.js b/ui/jquery.effects.scale.js
index 614943cfb..2642c6c1d 100644
--- a/ui/jquery.effects.scale.js
+++ b/ui/jquery.effects.scale.js
@@ -24,6 +24,7 @@ function compFunction( el, complete, next ) {
$.effects.effect.puff = function( o, next ) {
var elem = $( this ),
mode = $.effects.setMode( elem, o.mode || "hide" ),
+ hide = mode === "hide",
percent = parseInt( o.percent, 10 ) || 150,
factor = percent / 100,
original = {
@@ -37,8 +38,8 @@ $.effects.effect.puff = function( o, next ) {
fade: true,
mode: mode,
complete: compFunction( this, o.complete, next ),
- percent: mode == "hide" ? percent : 100,
- from: mode == "hide"
+ percent: hide ? percent : 100,
+ from: hide
? original
: {
height: original.height * factor,