incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r593344 - /incubator/xap/trunk/codebase/src/dojo/src/html/style.js
Date Thu, 08 Nov 2007 22:40:05 GMT
Author: jmargaris
Date: Thu Nov  8 14:40:05 2007
New Revision: 593344

URL: http://svn.apache.org/viewvc?rev=593344&view=rev
Log:
error checking for node style

Modified:
    incubator/xap/trunk/codebase/src/dojo/src/html/style.js

Modified: incubator/xap/trunk/codebase/src/dojo/src/html/style.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/dojo/src/html/style.js?rev=593344&r1=593343&r2=593344&view=diff
==============================================================================
--- incubator/xap/trunk/codebase/src/dojo/src/html/style.js (original)
+++ incubator/xap/trunk/codebase/src/dojo/src/html/style.js Thu Nov  8 14:40:05 2007
@@ -242,14 +242,14 @@
 				return cs.getPropertyValue(cssSelector);	//	integer
 			} 
 		}catch(e){ // reports are that Safari can throw an exception above
-			if(node.style.getPropertyValue){ // W3
+			if(node.style && node.style.getPropertyValue){ // W3
 				return node.style.getPropertyValue(cssSelector);	//	integer
 			} else {
 				return inValue;	//	integer
 			}
 		}
 	} 
-	if(node.style.getPropertyValue){ // W3
+	if(node.style && node.style.getPropertyValue){ // W3
 		return node.style.getPropertyValue(cssSelector);	//	integer
 	}else{
 		return inValue;	//	integer



Mime
View raw message