Skip to content
Permalink
Browse files

jquery fx: Fixed redundant code

  • Loading branch information
flesler committed Dec 25, 2008
1 parent 654d946 commit e4d8365ec7e9cc8bc8aba47817601d413dd10e28
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/fx.js
@@ -18,15 +18,15 @@ jQuery.fn.extend({
if ( elemdisplay[ tagName ] ) {
display = elemdisplay[ tagName ];
} else {
var elem = jQuery("<" + this[i].tagName + " />").appendTo("body");
var elem = jQuery("<" + tagName + " />").appendTo("body");

display = elem.css("display");
if ( display === "none" )
display = "block";

elem.remove();

elemdisplay[ this[i].tagName ] = display;
elemdisplay[ tagName ] = display;
}

this[i].style.display = jQuery.data(this[i], "olddisplay", display);

0 comments on commit e4d8365

Please sign in to comment.
You can’t perform that action at this time.