X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx.js;h=824616afbb75d015d967846165398ecd05318158;hb=25f9974cee5874d10df32f2d16fb985181e0c077;hp=b4606a82fc49250a6effe0adaafdfe9ab1ca5614;hpb=17640273705d1450b806bb5c8e71c2849d864a37;p=jquery.git diff --git a/src/fx.js b/src/fx.js index b4606a8..824616a 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(); @@ -185,8 +188,7 @@ var queue = function( elem, type, array ) { var q = jQuery.data( elem, type + "queue" ); if ( !q || array ) - q = jQuery.data( elem, type + "queue", - array ? jQuery.makeArray(array) : [] ); + q = jQuery.data( elem, type + "queue", jQuery.makeArray(array) ); return q; };