jquery fx: Fixed redundant code

This commit is contained in:
Ariel Flesler 2008-12-25 21:00:08 +00:00
parent 654d946ead
commit e4d8365ec7

View file

@ -18,7 +18,7 @@ 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" )
@ -26,7 +26,7 @@ jQuery.fn.extend({
elem.remove();
elemdisplay[ this[i].tagName ] = display;
elemdisplay[ tagName ] = display;
}
this[i].style.display = jQuery.data(this[i], "olddisplay", display);