Commit 44e4c188 authored by John Resig's avatar John Resig

Fixed issue with hide() notn reverting back to the correct display type.

parent 5d0b503c
...@@ -1609,7 +1609,7 @@ jQuery.macros = { ...@@ -1609,7 +1609,7 @@ jQuery.macros = {
* @type jQuery * @type jQuery
*/ */
hide: function(){ hide: function(){
this.oldblock = jQuery.css(this,"display"); this.oldblock = this.oldblock || jQuery.css(this,"display");
if ( this.oldblock == "none" ) if ( this.oldblock == "none" )
this.oldblock = "block"; this.oldblock = "block";
this.style.display = "none"; this.style.display = "none";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment