This commit is contained in:
Jörn Zaefferer 2007-10-12 09:46:48 +00:00
parent a5f95c88c1
commit 0f5c1d15e9

View file

@ -846,7 +846,7 @@ jQuery.extend({
// one special, otherwise get the value // one special, otherwise get the value
ret = name == "display" && swap[ stack.length - 1 ] != null ? ret = name == "display" && swap[ stack.length - 1 ] != null ?
"none" : "none" :
document.defaultView.getComputedStyle( elem, null ).getPropertyValue( name ) || ""; ( getComputedStyle && getComputedStyle.getPropertyValue( name ) ) || "";
// Finally, revert the display styles back // Finally, revert the display styles back
for ( var i = 0; i < swap.length; i++ ) for ( var i = 0; i < swap.length; i++ )