kernel.js 828 B

1234567891011121314151617181920212223242526
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. // AMD module id = dojo/lib/kernel
  7. //
  8. // This module ensures the dojo object is initialized by...
  9. //
  10. // * dojo/_base/_loader/bootstrap
  11. // * dojo/lib/backCompat
  12. // * dojo/_base/_loader/hostenv_browser
  13. //
  14. // This is roughly equivalent to the work that dojo.js does by injecting
  15. // bootstrap, loader, and hostenv_browser.
  16. //
  17. // note: this module is relevant only when loading dojo with an AMD loader;
  18. // it is never evaluated otherwise.
  19. // for now, we publish dojo into the global namespace because so many tests and apps expect it.
  20. define(["dojo/_base/_loader/hostenv_browser"], function(dojo_){
  21. dojo= dojo_;
  22. return dojo_;
  23. });