From: Stephan R. <SR...@la...> - 2000-11-17 09:00:20
|
Alas we don't have a preprocessor, but not use a construct like this (which u can find in almost every C or C++ source): #ifndef __DIRECTRY_H #include "directry.h" #endif public vars should be ok in JS. Stephan > > > > Of course you'd need to keep a running list of all the files that had > already been loaded are not loaded again. Otherwise, you could > be making a > lot of useless trips to the server :) > > > > You could have a DynAPI.require method that will add required files. > Then when the first file is included, it will include all of the > required files. I've done something similar to this before and it > worked quite easily. Also, this allows you to set the required files > in the widgets. That way if someone wanted to use the button widget, > the only file that have to include is the button.js file and all of > the others would automatically be included. > > > > I think the DynAPi is already very modular, you don't need to use events > or > > dragging objects. > > The only problem we're having is that you need to include > dyndocument and > > dynlayer, because dynlayers can only be added to dyndocuments.. but the > rest > > isn't that bad is it? > > > > Brandon, care to share your ideas ? > > |