在我的dojo构建器无法使用“dojo / registry.byId”之后。 结果未定义 请帮帮我
这是我的构建器文件:
var profile = (function(){
return {
basePath: "../../..",
releaseDir: "release",
action: "release",
layerOptimize: "closure",
optimize: "shrinksafe",
cssOptimize: "comments",
mini: true,
stripConsole: "warn",
selectorEngine: "lite",
defaultConfig: {
hasCache:{
"dojo-built": 1,
"dojo-loader": 1,
"dom": 1,
"host-browser": 1,
"config-selectorEngine": "lite"
},
async: 1
},
staticHasFeatures: {
"config-deferredInstrumentation": 0,
"config-dojo-loader-catches": 0,
"config-tlmSiblingOfDojo": 0,
"dojo-amd-factory-scan": 0,
"dojo-combo-api": 0,
"dojo-config-api": 1,
"dojo-config-require": 0,
"dojo-debug-messages": 0,
"dojo-dom-ready-api": 1,
"dojo-firebug": 0,
"dojo-guarantee-console": 1,
"dojo-has-api": 1,
"dojo-inject-api": 1,
"dojo-loader": 1,
"dojo-log-api": 0,
"dojo-modulePaths": 0,
"dojo-moduleUrl": 0,
"dojo-publish-privates": 0,
"dojo-requirejs-api": 0,
"dojo-sniff": 1,
"dojo-sync-loader": 0,
"dojo-test-sniff": 0,
"dojo-timeout-api": 0,
"dojo-trace-api": 0,
"dojo-undef-api": 0,
"dojo-v1x-i18n-Api": 1,
"dom": 1,
"host-browser": 1,
"extend-dojo": 1
},
packages:[{
name: "dojo",
location: "dojo"
},{
name: "dijit",
location: "dijit"
},{
name: "dojox",
location: "dojox"
}],
layers: {
"dojo/dojo": {
include: [
"dojo/require",
"dojo/i18n",
"dojo/on",
"dojo/dom",
"dojo/request/script",
"dojo/dom-class",
"dojo/dom-style",
"dojo/keys",
"dojo/dom-construct",
"dojo/query",
"dojo/dom-form",
"dojox/validate/web",
"dojo/request",
"dojox/validate/check",
"dojo/_base/array",
"dojo/dom-attr",
"dojo/parser",
"dojo/string",
"dojo/number",
"dojox/main",
"dojox/validate/regexp",
"dojox/validate/_base",
"dojo/request/default",
"dojox/validate/web",
"dojo/selector/acme",
"dojo/aspect",
"dijit/dijit",
"dijit/registry",
"dojo/request/xhr",
"dojox/grid/enhanced/plugins/Pagination",
"dojox/grid/enhanced/plugins/IndirectSelection",
"dojo/date/locale",
"dojo/mouse",
"dojo/html",
"dojo/json",
"dijit/Menu",
"dijit/MenuBar",
"dijit/MenuBarItem",
"dijit/PopupMenuBarItem",
"dojox/form/Manager",
"dijit/form/RadioButton",
"dijit/form/NumberSpinner",
"dijit/form/TextBox",
"dijit/form/Button",
"dijit/form/ValidationTextBox",
"dijit/form/CheckBox",
"dijit/form/DateTextBox",
"dijit/form/Select",
"dojo/domReady"
],
customBase: true,
boot: true
}
}
};
})();
当我使用var a = registry时。 ById(“someid”); 我得到的结果是 A == undefined