From: Brandon M. <bnd...@ho...> - 2000-11-28 22:38:56
|
DynAPI is very dependent on the DynDocument.js file. DynAPI is the absolute core of DynAPI 2. It is the single place where globally accessed things can be stored. Unassigned layers, DynDocument lists, API options, inclusion routines, etc. DynAPI.dyndoc <- This has become common practice to retrieve the default DynDocument object. Besides, 99.9% of the apps use the API for layers. And this object is required to use layers. I have solved a basic problem of, what if I want to use other objects developed for DynAPI, use the DynAPI object, but not use any layering... (Which I have done). I simply placed this in the loadHandler of the DynAPI object. So.. if these changes where made, I feel that DynDocument could become an "Optional" object when not needed. from: DynAPI.document.findDimensions() if (DynAPI.findLayers) DynAPI.findLayers(DynAPI.document) if (DynAPI.document.captureMouseEvents) DynAPI.document.captureMouseEvents() DynAPI.loaded=false; if (DynAPI.document.invokeEvent) DynAPI.document.invokeEvent('beforeload') if (DynAPI.document.invokeEvent) DynAPI.document.invokeEvent('load') if (DynAPI.onLoad) DynAPI.onLoad() for (var i=0;i<DynAPI.plugins.length; i++) if (DynAPI.plugins[i].onLoad) DynAPI.plugins[i].onLoad() DynAPI.loaded=true if (DynAPI.document.invokeEvent) DynAPI.document.invokeEvent('afterload') if (DynAPI.loaderStart) DynAPI.loaderStart() to: DynAPI.loaded=false; if (typeof DynDocument!='undefined') { DynAPI.document.findDimensions() if (DynAPI.findLayers) DynAPI.findLayers(DynAPI.document) if (DynAPI.document.captureMouseEvents) DynAPI.document.captureMouseEvents() if (DynAPI.document.invokeEvent) DynAPI.document.invokeEvent('beforeload') if (DynAPI.document.invokeEvent) DynAPI.document.invokeEvent('load') } if (DynAPI.onLoad) DynAPI.onLoad() for (var i=0;i<DynAPI.plugins.length; i++) if (DynAPI.plugins[i].onLoad) DynAPI.plugins[i].onLoad() DynAPI.loaded=true if (DynAPI.loaderStart) DynAPI.loaderStart() if (typeof DynDocument!='undefined') { if (DynAPI.document.invokeEvent) DynAPI.document.invokeEvent('afterload') } ----- Original Message ----- From: "Robert Rainwater" <rra...@ya...> To: <dyn...@li...> Sent: Tuesday, November 28, 2000 4:05 PM Subject: [Dynapi-Dev] DynDocument Plugin? > I was thinking about a post someone had about getting errors because > they didnt include dyndocument.js. Shouldn't dyndocument be a plugin. > That way allow of the initialization stuff of the dyndocument can be > done in dyndocument.js. This way no dyndocument stuff will be in the > dynapi.js file. Isn't that what the plugin idea was for anyway? > > -- > // Robert Rainwater > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |