[Dojo-checkins] alex - r3435 - trunk/src
dojo-checkins-admin at dojotoolkit.org
dojo-checkins-admin at dojotoolkit.org
Tue Apr 4 00:49:00 MDT 2006
Author: alex
Date: Tue Apr 4 00:49:00 2006
New Revision: 3435
Modified:
trunk/src/hostenv_browser.js
trunk/src/hostenv_dashboard.js
trunk/src/hostenv_rhino.js
Log:
adding dojo.render.name values. Fixes #421
Modified: trunk/src/hostenv_browser.js
==============================================================================
--- trunk/src/hostenv_browser.js (original)
+++ trunk/src/hostenv_browser.js Tue Apr 4 00:49:00 2006
@@ -1,14 +1,3 @@
-/**
-* @file hostenv_browser.js
-*
-* Implements the hostenv interface for a browser environment.
-*
-* Perhaps it could be called a "dom" or "useragent" environment.
-*
-* @author Copyright 2004 Mark D. Anderson (mda at discerning.com)
-* @author Licensed under the Academic Free License 2.1 http://www.opensource.org/licenses/afl-2.1.php
-*/
-
// make jsc shut up (so we can use jsc to sanity check the code even if it will never run it).
/*@cc_on
@if (@_jscript_version >= 7)
@@ -63,6 +52,7 @@
}
}
+ // fill in the rendering support information in dojo.render.*
var dr = dojo.render;
var drh = dojo.render.html;
var drs = dojo.render.svg;
@@ -142,7 +132,7 @@
dojo.hostenv.startPackage("dojo.hostenv");
-dojo.hostenv.name_ = 'browser';
+dojo.render.name = dojo.hostenv.name_ = 'browser';
dojo.hostenv.searchIds = [];
// These are in order of decreasing likelihood; this will change in time.
Modified: trunk/src/hostenv_dashboard.js
==============================================================================
--- trunk/src/hostenv_dashboard.js (original)
+++ trunk/src/hostenv_dashboard.js Tue Apr 4 00:49:00 2006
@@ -1,4 +1,4 @@
-dojo.hostenv.name_ = "dashboard";
+dojo.render.name = dojo.hostenv.name_ = "dashboard";
dojo.hostenv.println = function(/*String*/ message){
// summary: Prints a message to the OS X console
@@ -184,4 +184,4 @@
if(widget.system){
widget.system("/bin/rm -rf cache/*", null);
}
-}
\ No newline at end of file
+}
Modified: trunk/src/hostenv_rhino.js
==============================================================================
--- trunk/src/hostenv_rhino.js (original)
+++ trunk/src/hostenv_rhino.js Tue Apr 4 00:49:00 2006
@@ -12,7 +12,7 @@
// TODO: not sure what we gain from the next line, anyone?
//if (typeof loadClass == 'undefined') { dj_throw("attempt to use Rhino host environment when no 'loadClass' global"); }
-dojo.hostenv.name_ = 'rhino';
+dojo.render.name = dojo.hostenv.name_ = 'rhino';
dojo.hostenv.getVersion = function() {return version()};
// see comments in spidermonkey loadUri
More information about the Dojo-checkins
mailing list