forked from dojo/dijit-oldmirror
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove dijit/_base except for dijit/_base/manager::defaultDuration de…
…f, refs #1
- Loading branch information
Showing
27 changed files
with
11 additions
and
2,735 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,16 @@ | ||
define([ | ||
"dojo/_base/array", | ||
"dojo/_base/config", // defaultDuration | ||
"dojo/_base/lang", | ||
"../registry", | ||
"../main" // for setting exports to dijit namespace | ||
], function(array, config, lang, registry, dijit){ | ||
"dojo/_base/config" // defaultDuration | ||
], function(config){ | ||
|
||
// module: | ||
// dijit/_base/manager | ||
|
||
var exports = { | ||
// summary: | ||
// Deprecated. Shim to methods on registry, plus a few other declarations. | ||
// New code should access dijit/registry directly when possible. | ||
}; | ||
|
||
array.forEach(["byId", "getUniqueId", "findWidgets", "_destroyAll", "byNode", "getEnclosingWidget"], function(name){ | ||
exports[name] = registry[name]; | ||
}); | ||
|
||
lang.mixin(exports, { | ||
return { | ||
// defaultDuration: Integer | ||
// The default fx.animation speed (in ms) to use for all Dijit | ||
// transitional fx.animations, unless otherwise specified | ||
// on a per-instance basis. Defaults to 200, overrided by | ||
// on a per-instance basis. Defaults to 200, overriden by | ||
// `djConfig.defaultDuration` | ||
defaultDuration: config["defaultDuration"] || 200 | ||
}); | ||
|
||
lang.mixin(dijit, exports); | ||
|
||
/*===== return exports; =====*/ | ||
return dijit; // for back compat :-( | ||
}; | ||
}); |
Oops, something went wrong.