在我们的项目中,我们使用的是Dojo和JavaScript。我们收到以下错误
Error: declare: mixin #0 is not a callable constructor.
我们编写的代码如下 -
[ require({
packages : [ {
name : "dojoWidget",
location : "/wle/js/DojoWidgets"
} ]
}, [ "dojox/widget/Standby", "dijit/form/Button", "dojo/_base/array", "dijit/layout/BorderContainer", "dojoWidget/SolutionEditor/partitionContentPane", "dijit/layout/ContentPane",
"dojoWidget/SolutionEditor/wleDefinitionTree", "dojoWidget/SolutionEditor/SolutionEditorConstants" ,
"dojoWidget/OneTimeHelp/OneTimeHelp",
"dijit/Menu", "dijit/MenuItem",
"dojo/domReady!" ], function(Standby, Button, array, BorderContainer, partitionContentPane, ContentPane,
dT, solutionEditorConstants, OneTimeHelp, Menu, MenuItem) {
wleDefinitionTreeSizedFlag = false;
SEConstants = new solutionEditorConstants();
isSized = function(xml){
for (var i = 0; i < xml.childNodes.length; i++){
if (xml.childNodes[i].tagName == "Tier"){
for (var j = 0; j <xml.childNodes[i].childNodes.length; j++){
if (xml.childNodes[i].childNodes[j].tagName == "System"){
for (var k = 0; k <xml.childNodes[i].childNodes[j].childNodes.length; k++){
if (xml.childNodes[i].childNodes[j].childNodes[k].tagName == "ImmediateSelection" ||
xml.childNodes[i].childNodes[j].childNodes[k].tagName == "GrowtheSelection"){
return true;
}
}
return false;
}
}
}
}
};
require([ "dojo/ready", "dojox/xml/parser" ], function(ready, parser) {
ready(function() {
var isPrune = getCookie("isPrune");
var mem=getCookie("modifiedMemoryObj");
document.cookie = "isPrune=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
document.cookie = "modifiedMemoryObj=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
loadTreeFromRest(contextRoot + "rest/sizing?sessionID=" + document.getElementById('sessionID').value+"&isPrune="+isPrune+"&useMemory="+mem);
});
}); ]
任何人都可以告诉我为什么会收到这个错误..以前它工作正常。 谢谢