aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-11-09 23:42:05 -0500
committerjeresig <jeresig@gmail.com>2010-11-09 23:42:05 -0500
commit86cf820d36341842e10084a97d2ecf87393336f3 (patch)
tree7fb3345658606eda0f78d60a018cfa728a84fea9 /src
parentefaf375e56920c9699c3d4ef09fb9171352aa8bb (diff)
downloadjquery-86cf820d36341842e10084a97d2ecf87393336f3.tar.gz
jquery-86cf820d36341842e10084a97d2ecf87393336f3.zip
Backing out commit 795e880bba1f7f949df58748f7fd92e50296a8f4 - errors popping up in IE 6/7/8.
Diffstat (limited to 'src')
-rw-r--r--src/effects.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/effects.js b/src/effects.js
index bac2e1d51..51ce0c577 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -61,10 +61,10 @@ jQuery.fn.extend({
} else {
for ( var i = 0, j = this.length; i < j; i++ ) {
var display = jQuery.css( this[i], "display" );
-
- if ( !jQuery.data( this[i], "olddisplay" ) && display !== "none" ) {
- jQuery.data( this[i], "olddisplay", display );
- }
+
+ if ( display !== "none" ) {
+ jQuery.data( this[i], "olddisplay", display );
+ }
}
// Set the display of the elements in a second loop