X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffx.js;h=529fd4cde94d9beec9dbf1ac6cb5412fa07818ba;hb=59802928566b6be3a66d65e77c2418fff37e6f5f;hp=fa17072942242b649130e16afcfef280267eef4e;hpb=b776e2b79a5b051fba3091b0b5057ae14950f7cc;p=jquery.git diff --git a/src/fx.js b/src/fx.js index fa17072..529fd4c 100644 --- a/src/fx.js +++ b/src/fx.js @@ -359,7 +359,9 @@ jQuery.fx.prototype = { this.elem.style.overflow = this.options.overflow; // Reset the display - this.elem.style.display = this.options.display; + var old = jQuery.data(this.elem, "olddisplay"); + this.elem.style.display = old ? old : this.options.display; + if ( jQuery.css(this.elem, "display") == "none" ) { this.elem.style.display = "block"; }