Skip to content

Commit

Permalink
jquery fx: Fixed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
flesler committed Dec 25, 2008
1 parent 654d946 commit e4d8365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fx.js
Expand Up @@ -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);
Expand Down

0 comments on commit e4d8365

Please sign in to comment.