From: Cameron S. <ca...@sh...> - 2004-03-28 20:38:21
|
I'd like to simplify the Config.xml file further and remove most of the <script includes> from complete.html. I don't think that Config.xml or complete.html should know that MapPane.js depends on WidgetBase.js and Listener.js. This information should be stored inside MapPane.js. So I propose that complete.html only includes and initialises one script - the mapbuilderBootStrap.js script. MapbuilderBootStrap will include all initial scripts (Util.js and Config.js) then load all the scripts specified in the Config.xml (as it currently does). Objects like MapPane, which have dependancies on other objects will need to load these scripts at initialisation time. I assume that we can have something like: if (! WidgetBase) loadScript($baseDir+"widget/WidgetBase.js") Any objections? -- Cameron Shorter |