Hello,
It would also be nice if there was an event (e.g.
onloadlibrary) that would get triggered whenever a
library is loaded. This event could pass the current
file and the total number of files to be loaded. Such
an event could be used to create a progress bar to
show the loading process.
It would also be nice if the dependency structure was
part of the widget specs
example (Button Widget)
// Button Widget 1.0
// Dependencies
DynAPI.library.add('Obj','obj.js','DependentObj');
Button=function(){
// code here...
}
Questions:
1) Are Object names case-sensitive?
In other words, Is DynAPI.library.add('Obj') the same
as DynAPI.library.add('obj')?
2) What happens if a user should add an object twice?
Example:
DynAPI.library.add('Obj')
DynAPI.library.add('Obj')
Will this create two entries in the library tree will
it a attempt to reload the object?
--- Dan Steinman <[EMAIL PROTECTED]> wrote:
> When you "add()" an object to the library tree it
> simply ensures that any objects that are required by
> the script are loaded before it:
>
> DynAPI.library.add('DependentObj','dep.src');
> DynAPI.library.add('Obj','obj.js','DependentObj');
> DynAPI.library.load('Obj'); // loads DependentObj
> before Obj
>
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/