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

1.7/enhancement_8685
John Resig 2006-07-28 04:54:50 +00:00
parent 5d0b503c6d
commit 44e4c188dd
1 changed files with 1 additions and 1 deletions

2
jquery/jquery.js vendored
View File

@ -1609,7 +1609,7 @@ jQuery.macros = {
* @type jQuery
*/
hide: function(){
this.oldblock = jQuery.css(this,"display");
this.oldblock = this.oldblock || jQuery.css(this,"display");
if ( this.oldblock == "none" )
this.oldblock = "block";
this.style.display = "none";