Commit e4d8365e authored by Ariel Flesler's avatar Ariel Flesler

jquery fx: Fixed redundant code

parent 654d946e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment