Skip to main content

Bug Tracker

Side navigation

Ticket #2802: ticket2802_safari_curCSS.diff


File ticket2802_safari_curCSS.diff, 0.7 KB (added by ebartels, May 05, 2008 11:30PM UTC)
diff --git a/src/core.js b/src/core.js
index 0871cb8..3ab976f 100644
--- a/src/core.js
+++ b/src/core.js
@@ -830,7 +830,7 @@ jQuery.extend({
 				return false;
 			
 			// getComputedStyle is cached
-			var ret = getComputedStyle( elem, null );
+			var ret = document.defaultView.getComputedStyle( elem, null );
 			return !ret || ret.getPropertyValue("color") == "";
 		}
 
@@ -864,7 +864,7 @@ jQuery.extend({
 
 			name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
 
-			var computedStyle = getComputedStyle( elem, null );
+			var computedStyle = document.defaultView.getComputedStyle( elem, null );
 
 			if ( computedStyle && !color( elem ) )
 				ret = computedStyle.getPropertyValue( name );

Download in other formats:

Original Format