main-browser.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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
  7. //
  8. // This is a package main module for the dojo package implemented so that the *absolute minimal*
  9. // changes are made to the dojo 1.x code. It is by no means optimal and should/will be replaced with
  10. // a less naive design--particularly as dojo v2.0 evolves.
  11. //
  12. // There are a few key design weaknesses in this implementation:
  13. //
  14. // * generally, v1.x bootstrap, tests, and apps assume dojo is global
  15. //
  16. // * the v1.x dojo/_base modules assume dojo is defined before they are defined
  17. // and their factory functions go about populating dojo--which is really part of defining
  18. // dojo. This leads to the appearance of a circular dependency and is a somewhat obtuse
  19. // design since the dojo object must be delivered to them under a different module
  20. // name (dojo/lib/kernel).
  21. //
  22. // * bootstrap modules tend to incorporate unrelated features (e.g., hostenv_browser includes
  23. // DOMContentLoad detection, thereby making it impossible to build out this feature if a
  24. // particular app does not need it).
  25. //
  26. // * The back compatibility layer requires/contains some non-optimal code that needs to be improved.
  27. //
  28. // As 1.7 and 2.0 evolve, these items will be addressed with more robust implementation.
  29. //
  30. // The boot sequence is as follows:
  31. //
  32. // dojo (this module) depends on...
  33. // dojo/lib/kernel which depends on...
  34. // dojo/_base/_loader/hostenv_browser which depends on...
  35. // dojo/lib/backCompat which depends on...
  36. // dojo/_base/_loader/bootstrap which depends on nothing
  37. //
  38. // This module further depends on the fairly ordinary modules in dojo/_base; each of these
  39. // modules depends on dojo/lib/kernel (at least) which provide the dojo object for them to augment.
  40. define("dojo", [
  41. "dojo/lib/kernel",
  42. "dojo/_base/lang",
  43. "dojo/_base/array",
  44. "dojo/_base/declare",
  45. "dojo/_base/connect",
  46. "dojo/_base/Deferred",
  47. "dojo/_base/json",
  48. "dojo/_base/Color",
  49. "dojo/_base/window",
  50. "dojo/_base/event",
  51. "dojo/_base/html",
  52. "dojo/_base/NodeList",
  53. "dojo/_base/query",
  54. "dojo/_base/xhr",
  55. "dojo/_base/fx"
  56. ], function(dojo){
  57. return dojo;
  58. });