incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r482686 - /incubator/xap/trunk/src/dojo/src/event/browser.js
Date Tue, 05 Dec 2006 15:06:50 GMT
Author: mturyn
Date: Tue Dec  5 07:06:49 2006
New Revision: 482686

URL: http://svn.apache.org/viewvc?view=rev&rev=482686
Log:
From: Rob Gagne

Added this fix from the dojo source code:

http://trac.dojotoolkit.org/changeset/6718

Hoping to fix a "dojo not defined' message in FireFox.  

Modified:
    incubator/xap/trunk/src/dojo/src/event/browser.js

Modified: incubator/xap/trunk/src/dojo/src/event/browser.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/dojo/src/event/browser.js?view=diff&rev=482686&r1=482685&r2=482686
==============================================================================
--- incubator/xap/trunk/src/dojo/src/event/browser.js (original)
+++ incubator/xap/trunk/src/dojo/src/event/browser.js Tue Dec  5 07:06:49 2006
@@ -152,7 +152,7 @@
 	this.isEvent = function(obj){
 		// FIXME: event detection hack ... could test for additional attributes
 		// if necessary
-		return (typeof obj != "undefined")&&(typeof Event != "undefined")&&(obj.eventPhase);
+		return (typeof obj != "undefined")&&(obj)&&(typeof Event != "undefined")&&(obj.eventPhase);
 		// Event does not support instanceof in Opera, otherwise:
 		//return (typeof Event != "undefined")&&(obj instanceof Event);
 	}



Mime
View raw message