jquery fx: Fixed redundant code
This commit is contained in:
parent
654d946ead
commit
e4d8365ec7
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ jQuery.fn.extend({
|
||||||
if ( elemdisplay[ tagName ] ) {
|
if ( elemdisplay[ tagName ] ) {
|
||||||
display = elemdisplay[ tagName ];
|
display = elemdisplay[ tagName ];
|
||||||
} else {
|
} else {
|
||||||
var elem = jQuery("<" + this[i].tagName + " />").appendTo("body");
|
var elem = jQuery("<" + tagName + " />").appendTo("body");
|
||||||
|
|
||||||
display = elem.css("display");
|
display = elem.css("display");
|
||||||
if ( display === "none" )
|
if ( display === "none" )
|
||||||
|
@ -26,7 +26,7 @@ jQuery.fn.extend({
|
||||||
|
|
||||||
elem.remove();
|
elem.remove();
|
||||||
|
|
||||||
elemdisplay[ this[i].tagName ] = display;
|
elemdisplay[ tagName ] = display;
|
||||||
}
|
}
|
||||||
|
|
||||||
this[i].style.display = jQuery.data(this[i], "olddisplay", display);
|
this[i].style.display = jQuery.data(this[i], "olddisplay", display);
|
||||||
|
|
Loading…
Reference in a new issue