Skip to content
Permalink
Browse files

Fixed an edge case in show() where the css says the display should be…

… none. In that case force 'block' so it will actually show.
  • Loading branch information
davids549 committed Jan 12, 2008
1 parent b91eef0 commit d36382e9a3fa604597d400d1084a2424f0d3eb80
Showing with 3 additions and 0 deletions.
  1. +3 −0 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();

0 comments on commit d36382e

Please sign in to comment.
You can’t perform that action at this time.