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();
return queue( this[0], type );
return this.each(function(){
- if ( this.nodeType != 1)
- return;
-
if ( fn.constructor == Array )
queue(this, type, fn);
else {
var queue = function( elem, type, array ) {
if ( !elem )
- return;
+ return undefined;
type = type || "fx";
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;
};
_default: function(fx){
fx.elem.style[ fx.prop ] = fx.now + fx.unit;
}
-};
\ No newline at end of file
+};