aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.effects.highlight.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/jquery.effects.highlight.js')
-rw-r--r--ui/jquery.effects.highlight.js11
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();
}
});