X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx.js;h=64cfbc62525123464d6c570772d27d9887375169;hb=3e285bd60de63afe314971957a0547603bb74386;hp=fb564f07c562c1fdbb2dfc1a3f5e5a22ee75274a;hpb=feb9051c0e29937c2494c3db0862a671efc21747;p=jquery.git diff --git a/src/fx.js b/src/fx.js index fb564f0..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(); @@ -139,9 +142,6 @@ jQuery.fn.extend({ return queue( this[0], type ); return this.each(function(){ - if ( this.nodeType != 1) - return; - if ( fn.constructor == Array ) queue(this, type, fn); else {