diff options
Diffstat (limited to 'lib/dojo/lib/kernel.js')
-rw-r--r-- | lib/dojo/lib/kernel.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/dojo/lib/kernel.js b/lib/dojo/lib/kernel.js new file mode 100644 index 000000000..94a3fefae --- /dev/null +++ b/lib/dojo/lib/kernel.js @@ -0,0 +1,26 @@ +/* + Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. + Available via Academic Free License >= 2.1 OR the modified BSD license. + see: http://dojotoolkit.org/license for details +*/ + + +// AMD module id = dojo/lib/kernel +// +// This module ensures the dojo object is initialized by... +// +// * dojo/_base/_loader/bootstrap +// * dojo/lib/backCompat +// * dojo/_base/_loader/hostenv_browser +// +// This is roughly equivalent to the work that dojo.js does by injecting +// bootstrap, loader, and hostenv_browser. +// +// note: this module is relevant only when loading dojo with an AMD loader; +// it is never evaluated otherwise. + +// for now, we publish dojo into the global namespace because so many tests and apps expect it. +define(["dojo/_base/_loader/hostenv_browser"], function(dojo_){ + dojo= dojo_; + return dojo_; +}); |