Merge branch 'bug7141' of http://github.com/csnover/jquery into csnover-bug7141

This commit is contained in:
John Resig 2010-10-11 16:40:10 -04:00
commit 5f30ae3b6f
2 changed files with 34 additions and 3 deletions

7
src/effects.js vendored
View file

@ -49,9 +49,10 @@ jQuery.fn.extend({
} else {
for ( var i = 0, j = this.length; i < j; i++ ) {
var old = jQuery.data(this[i], "olddisplay");
if ( !old ) {
jQuery.data( this[i], "olddisplay", jQuery.css( this[i], "display" ) );
var display = jQuery.css( this[i], "display" );
if ( display !== "none" ) {
jQuery.data( this[i], "olddisplay", display );
}
}