}, speed, callback) :
this.filter(":hidden").each(function(){
- this.style.display = this.oldblock ? this.oldblock : "";
- if ( jQuery.css(this,"display") == "none" )
- this.style.display = "block";
+ this.style.display = this.oldblock || "";
+ if ( jQuery.css(this,"display") == "none" ) {
+ var elem = jQuery("<" + this.tagName + " />").appendTo("body");
+ this.style.display = elem.css("display");
+ elem.remove();
+ }
}).end();
},
this.filter(":visible").each(function(){
this.oldblock = this.oldblock || jQuery.css(this,"display");
- if ( this.oldblock == "none" )
- this.oldblock = "block";
this.style.display = "none";
}).end();
},
var optall = jQuery.speed(speed, easing, callback);
return this[ optall.queue === false ? "each" : "queue" ](function(){
+ if ( this.nodeType != 1)
+ return false;
+
var opt = jQuery.extend({}, optall);
var hidden = jQuery(this).is(":hidden"), self = this;
return queue( this[0], type );
return this.each(function(){
+ if ( this.nodeType != 1)
+ return;
+
if ( fn.constructor == Array )
queue(this, type, fn);
else {
_default: function(fx){
fx.elem.style[ fx.prop ] = fx.now + fx.unit;
}
-};
+};
\ No newline at end of file