Rev | Line | |
---|
[483] | 1 | define([ |
---|
| 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 | |
---|
| 9 | // module: |
---|
| 10 | // dijit/_base/manager |
---|
| 11 | |
---|
| 12 | var exports = { |
---|
| 13 | // summary: |
---|
| 14 | // Deprecated. Shim to methods on registry, plus a few other declarations. |
---|
| 15 | // New code should access dijit/registry directly when possible. |
---|
| 16 | }; |
---|
| 17 | |
---|
| 18 | array.forEach(["byId", "getUniqueId", "findWidgets", "_destroyAll", "byNode", "getEnclosingWidget"], function(name){ |
---|
| 19 | exports[name] = registry[name]; |
---|
| 20 | }); |
---|
| 21 | |
---|
| 22 | lang.mixin(exports, { |
---|
| 23 | // defaultDuration: Integer |
---|
| 24 | // The default fx.animation speed (in ms) to use for all Dijit |
---|
| 25 | // transitional fx.animations, unless otherwise specified |
---|
| 26 | // on a per-instance basis. Defaults to 200, overrided by |
---|
| 27 | // `djConfig.defaultDuration` |
---|
| 28 | defaultDuration: config["defaultDuration"] || 200 |
---|
| 29 | }); |
---|
| 30 | |
---|
| 31 | lang.mixin(dijit, exports); |
---|
| 32 | |
---|
| 33 | /*===== return exports; =====*/ |
---|
| 34 | return dijit; // for back compat :-( |
---|
| 35 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.