diff options
author | gnarf <gnarf@gnarf.net> | 2011-06-21 01:15:42 -0500 |
---|---|---|
committer | gnarf <gnarf@gnarf.net> | 2011-06-21 01:18:11 -0500 |
commit | 65a6c46e5568c43a9df9505e23da6a766814557e (patch) | |
tree | 63087dadabc63382d06c369062644fc64d252f5f /ui/jquery.effects.explode.js | |
parent | 1c1a3b1a361d90a73755fbd038b3cdfb0960c29f (diff) | |
download | jquery-ui-65a6c46e5568c43a9df9505e23da6a766814557e.tar.gz jquery-ui-65a6c46e5568c43a9df9505e23da6a766814557e.zip |
Effects.*: Style Guidance
Diffstat (limited to 'ui/jquery.effects.explode.js')
-rw-r--r-- | ui/jquery.effects.explode.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.effects.explode.js b/ui/jquery.effects.explode.js index 76711c6f2..0deb2be9f 100644 --- a/ui/jquery.effects.explode.js +++ b/ui/jquery.effects.explode.js @@ -14,11 +14,11 @@ $.effects.effect.explode = function( o, next ) { - var rows = o.pieces ? Math.round(Math.sqrt(o.pieces)) : 3, + var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3, cells = rows, el = $( this ), mode = $.effects.setMode( el, o.mode || "hide" ), - show = ( mode == "show" ), + show = mode === "show", // show and then visibility:hidden the element before calculating offset offset = el.show().css( "visibility", "hidden" ).offset(), |