X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Ffx.js;h=64cfbc62525123464d6c570772d27d9887375169;hb=0cd307ec1077f5b09972400180f54dc278ad624a;hp=b4606a82fc49250a6effe0adaafdfe9ab1ca5614;hpb=17640273705d1450b806bb5c8e71c2849d864a37;p=jquery.git diff --git a/src/fx.js b/src/fx.js index b4606a8..64cfbc6 100644 --- a/src/fx.js +++ b/src/fx.js @@ -10,6 +10,9 @@ jQuery.fn.extend({ if ( jQuery.css(this,"display") == "none" ) { var elem = jQuery("<" + this.tagName + " />").appendTo("body"); this.style.display = elem.css("display"); + // handle an edge condition where css is - div { display:none; } or similar + if (this.style.display == "none") + this.style.display = "block"; elem.remove(); } }).end();