Skip to main content

Bug Tracker

Side navigation

Ticket #1779: 1779.diff


File 1779.diff, 0.5 KB (added by davidserduke, October 06, 2007 08:38PM UTC)
Index: src/core.js
===================================================================
--- src/core.js	(revision 3583)
+++ src/core.js	(working copy)
@@ -846,7 +846,7 @@
 				// one special, otherwise get the value
 				ret = name == "display" && swap[ stack.length - 1 ] != null ?
 					"none" :
-					document.defaultView.getComputedStyle( elem, null ).getPropertyValue( name ) || "";
+					( getComputedStyle && getComputedStyle.getPropertyValue( name ) ) || "";
 
 				// Finally, revert the display styles back
 				for ( var i = 0; i < swap.length; i++ )

Download in other formats:

Original Format