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.highlight.js | |
parent | 1c1a3b1a361d90a73755fbd038b3cdfb0960c29f (diff) | |
download | jquery-ui-65a6c46e5568c43a9df9505e23da6a766814557e.tar.gz jquery-ui-65a6c46e5568c43a9df9505e23da6a766814557e.zip |
Effects.*: Style Guidance
Diffstat (limited to 'ui/jquery.effects.highlight.js')
-rw-r--r-- | ui/jquery.effects.highlight.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ui/jquery.effects.highlight.js b/ui/jquery.effects.highlight.js index 61826e696..709e93a3c 100644 --- a/ui/jquery.effects.highlight.js +++ b/ui/jquery.effects.highlight.js @@ -20,7 +20,7 @@ $.effects.effect.highlight = function( o, next ) { backgroundColor: elem.css( "backgroundColor" ) }; - if (mode == "hide") { + if (mode === "hide") { animation.opacity = 0; } @@ -37,10 +37,13 @@ $.effects.effect.highlight = function( o, next ) { duration: o.duration, easing: o.easing, complete: function() { - (mode == "hide" && elem.hide()); + if ( mode === "hide" ) { + elem.hide(); + } $.effects.restore( elem, props ); - (mode == "show" && !$.support.opacity && this.style.removeAttribute( "filter" )); - jQuery.isFunction(o.complete) && o.complete.apply(this, arguments); + if ( $.isFunction( o.complete) ) { + o.complete.apply( this, arguments ); + } next(); } }); |