aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-04-19 13:45:01 -0400
committertimmywil <tim.willison@thisismedium.com>2011-04-19 13:45:01 -0400
commit8d2d94cfbab40d3919b4d5e596e589a2be09af1a (patch)
tree2473951d9efa90436f0feb891fb0269abd9c80ee /src/effects.js
parent825d3d96cebf9a88f34411a2df95622fd3e32619 (diff)
downloadjquery-8d2d94cfbab40d3919b4d5e596e589a2be09af1a.tar.gz
jquery-8d2d94cfbab40d3919b4d5e596e589a2be09af1a.zip
Fix test suite fails for hiding text nodes in F4 and IE9. Update for #6135.
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/effects.js b/src/effects.js
index d002d6d11..832ef5da0 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -71,10 +71,12 @@ jQuery.fn.extend({
} else {
for ( var i = 0, j = this.length; i < j; i++ ) {
- var display = jQuery.css( this[i], "display" );
+ if ( this[i].style ) {
+ var display = jQuery.css( this[i], "display" );
- if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) {
- jQuery._data( this[i], "olddisplay", display );
+ if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) {
+ jQuery._data( this[i], "olddisplay", display );
+ }
}
}