[Dojo-checkins] r752 -

dojo-checkins at dojotoolkit.org dojo-checkins at dojotoolkit.org
Mon Jun 20 11:22:45 PDT 2005


Author: alex
Date: Mon Jun 20 11:22:44 2005
New Revision: 752

Modified:
   __package__.js
Log:
making Rhino detection a bit safer still. What hostenvs am I missing w/ the auto-detection?


Modified: __package__.js
==============================================================================
--- __package__.js	(original)
+++ __package__.js	Mon Jun 20 11:22:44 2005
@@ -1,5 +1,5 @@
 (function(){
-	var isRhino = (typeof this["load"] == "function");
+	var isRhino = ((typeof this["load"] == "function")&&(typeof this["Packages"] == "object"));
 	var tmps = ["bootstrap1.js", "hostenv_"+((isRhino) ? "rhino" : "browser")+".js", "bootstrap2.js"];
 	var root = ((this["djConfig"])&&(djConfig["baseScriptUri"])) ?  djConfig.baseScriptUri : ".";
 	for(var x in tmps){


More information about the Dojo-checkins mailing list