X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffx.js;h=c949bdc6a956cb33c35d7a9f08bc9cc9b94a781a;hb=72cf42bcbd4f7dc351d313c65d8bce113981d159;hp=724e21f6ae8260e632b481fe77e6d56c6ea01053;hpb=f93df73a76b60ce3459113582125adbafcb9614f;p=jquery.git diff --git a/src/fx.js b/src/fx.js index 724e21f..c949bdc 100644 --- a/src/fx.js +++ b/src/fx.js @@ -46,12 +46,12 @@ jQuery.fn.extend({ jQuery.data(this[i], "olddisplay", display); } + } - // Set the display of the elements in a second loop - // to avoid the constant reflow - for ( var i = 0, l = this.length; i < l; i++ ){ - this[i].style.display = jQuery.data(this[i], "olddisplay"); - } + // Set the display of the elements in a second loop + // to avoid the constant reflow + for ( var i = 0, l = this.length; i < l; i++ ){ + this[i].style.display = jQuery.data(this[i], "olddisplay") || ""; } return this;