Created
December 17, 2012 05:14
-
-
Save FiNGAHOLiC/4315912 to your computer and use it in GitHub Desktop.
Override jQuery fadeIn & fadeOut function for FUCK'IN MSIE.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// override jquery fadeIn | |
$.fn._fadeIn = $.fn.fadeIn; | |
$.fn.fadeIn = function(){ | |
if(!$.browser.ie){ | |
return $.fn._fadeIn.apply(this, arguments); | |
}else{ | |
$.fn.show.apply(this); | |
for(var i = 0, l = arguments.length; i < l; i++){ | |
$.isFunction(arguments[i]) && arguments[i](); | |
}; | |
}; | |
}; | |
// override jquery fadeOut | |
$.fn._fadeOut = $.fn.fadeOut; | |
$.fn.fadeOut = function(){ | |
if(!$.browser.ie){ | |
return $.fn._fadeOut.apply(this, arguments); | |
}else{ | |
$.fn.hide.apply(this); | |
for(var i = 0, l = arguments.length; i < l; i++){ | |
$.isFunction(arguments[i]) && arguments[i](); | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment