diff --git a/src/fx.js b/src/fx.js index 724e21f6..c949bdc6 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;