From: Krinkle Date: Mon, 25 Jul 2011 08:58:51 +0000 (+0000) Subject: Removing redundant check from $.fn.goIn/Out code. X-Git-Tag: 1.31.0-rc.0~28645 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=0d1fd1198619c3f724cec0e8d4f553e6bc709528;p=lhc%2Fweb%2Fwiklou.git Removing redundant check from $.fn.goIn/Out code. --- diff --git a/resources/mediawiki/mediawiki.htmlform.js b/resources/mediawiki/mediawiki.htmlform.js index 1a6acd6f1d..24c8e43751 100644 --- a/resources/mediawiki/mediawiki.htmlform.js +++ b/resources/mediawiki/mediawiki.htmlform.js @@ -10,7 +10,7 @@ * @return jQuery */ $.fn.goIn = function( instantToggle ) { - if ( instantToggle !== undefined && instantToggle === true ) { + if ( instantToggle === true ) { return $(this).show(); } return $(this).stop( true, true ).fadeIn(); @@ -23,7 +23,7 @@ $.fn.goIn = function( instantToggle ) { * @return jQuery */ $.fn.goOut = function( instantToggle ) { - if ( instantToggle !== undefined && instantToggle === true ) { + if ( instantToggle === true ) { return $(this).hide(); } return $(this).stop( true, true ).fadeOut();