manager.js.uncompressed.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. define("dijit/_base/manager", [
  2. "dojo/_base/array",
  3. "dojo/_base/config", // defaultDuration
  4. "dojo/_base/lang",
  5. "../registry",
  6. "../main" // for setting exports to dijit namespace
  7. ], function(array, config, lang, registry, dijit){
  8. // module:
  9. // dijit/_base/manager
  10. var exports = {
  11. // summary:
  12. // Deprecated. Shim to methods on registry, plus a few other declarations.
  13. // New code should access dijit/registry directly when possible.
  14. };
  15. array.forEach(["byId", "getUniqueId", "findWidgets", "_destroyAll", "byNode", "getEnclosingWidget"], function(name){
  16. exports[name] = registry[name];
  17. });
  18. lang.mixin(exports, {
  19. // defaultDuration: Integer
  20. // The default fx.animation speed (in ms) to use for all Dijit
  21. // transitional fx.animations, unless otherwise specified
  22. // on a per-instance basis. Defaults to 200, overrided by
  23. // `djConfig.defaultDuration`
  24. defaultDuration: config["defaultDuration"] || 200
  25. });
  26. lang.mixin(dijit, exports);
  27. /*===== return exports; =====*/
  28. return dijit; // for back compat :-(
  29. });