Post date: 2010-05-07 07:25I got a question from one of our customers about a JavaScript error when using the automatic DojoBuild in DAP.
DAP's dojobuild will automatically take all the dojo.requires on your web page and build a custom build for you in real time, compress it and cache it. It will save you many many requests and reduce page load time dramatically.
After some digging it turns out that in one of the dojo components, dijit._DialogMixin, there is a missing dojo.require statement: dojo.require("dijit._Widget");
That was the reason for the faulty build.
To help make Dojo better we have submitted a ticket here: http://bugs.dojotoolkit.org/ticket/11089
Since this flaw has been in there for some Dojo generations I will put in a programmatic correction in the next release of DAP.
For now, just add a dojo.require("dijit._Widget") in dijit/_DialogMixin.js , and the build will be fine. Depending on which dojo.requires you have on your pages you might not even be affected by the issue.
|