Ticket #2195 (closed defect: fixed)
Support require/requireIf statements in custom build.
| Reported by: | jburke | Owned by: | jburke |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | BuildSystem | Version: | 0.4.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Be able to support require/requireIf statements in a custom build. Right now they are stripped out because it causes some havoc when loading. The requireIf support is really important since some modules like dojo.gfx and chart won't work in a custom build.
Use an approach similar to what is used in xdomain loading where dojo.hostenv.callLoaded is changed so that it will try to load any additional resources before actually firing the loaded event. Modify the require/requireIf code to store off what is being asked for until dojo.js finishes loading, then try to resolve the outstanding require/requireIf calls in the dojo.hostenv.callLoaded before proceeding with the loaded event.