Skip to content

Commit

Permalink
remove dijit/_base except for dijit/_base/manager::defaultDuration de…
Browse files Browse the repository at this point in the history
…f, refs #1
  • Loading branch information
wkeese committed Apr 30, 2013
1 parent 9be9af1 commit d8db7c0
Show file tree
Hide file tree
Showing 27 changed files with 11 additions and 2,735 deletions.
27 changes: 0 additions & 27 deletions _base.js

This file was deleted.

207 changes: 0 additions & 207 deletions _base/focus.js

This file was deleted.

29 changes: 5 additions & 24 deletions _base/manager.js
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 :-(
};
});
Loading

0 comments on commit d8db7c0

Please sign in to comment.