]> source.dussan.org Git - jquery.git/commitdiff
Fix test suite fails for hiding text nodes in F4 and IE9. Update for #6135.
authortimmywil <tim.willison@thisismedium.com>
Tue, 19 Apr 2011 17:45:01 +0000 (13:45 -0400)
committertimmywil <tim.willison@thisismedium.com>
Tue, 19 Apr 2011 17:45:01 +0000 (13:45 -0400)
src/effects.js

index d002d6d1106045c7a9a41f3399d6f8f4caf07be4..832ef5da0e016c8ad34a094f8505f4dbbdd8c205 100644 (file)
@@ -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 );
+                                       }
                                }
                        }