Ok, the majority is for the common-base solution. I'll
work on this and create a dynlayer_common.js and a
mouse_common.js file.

IMO only the above two groups should require common
base solutions.

As for the overwriting of functions that are browser
specific, I would suggested that we branch the
function if it is unique to at least two browsers.

--
Raymond Irving

--- Kevin <[EMAIL PROTECTED]> wrote:
> I agree with Doug's idea below, though Raymond
> mentioned:
> 
> > 3) The library class
> > currently does not support common-base files (but
> this
> > can be added).
> 
> I'm not sure? Are dynapi.api.* common files and then
> we
> add dynapi.api.ext.whatever for an extension. The
> dynapi
> pseudo-library system is clever though choosing our
> own
> <script> files to include as required may be easier.
> 
> So overwriting when needed gets my vote. Maybe it
> can
> be 'fixed' in the library include system. i.e. with
> Doug's
> example:
> 
> DynLayer_Common.js: setBlarg() - put in event.js or
> split
> event.js into event.js and dynlayer_common.js and
> fix the
> library include system.
> DynLayer_NS4.js: setBlarg()  - dynlayer_ns4.js is OK
> now!
> DynLayer_IeE5X.js: setBlarg() -  add to include
> system?
> 
> Kevin.
> 
> Doug Melvin <[EMAIL PROTECTED]> wrote:
> > > Let's hear the views of the other developers:
> > >
> > > 1) Should we implement a common-base file system
> for
> > > dynlayers?
> > 
> > Yes.
> > 
> > 
> > > 2) Do you think it will be easier to maintain a
> > > common-base dynlayer file?
> > 
> > Yes.
> > 
> > Clarification. While having to export a function
> once you have a browser
> > specific fix is a hassle..
> > It's an even bigger hassle to have to update code
> in four seperate files for
> > one fix.
> > 
> > If code is common.. it should be common. Then a
> simple fix can be done once,
> > and in one place.
> > If a browser specific fix does happen, then you
> can worry about exporting
> > the functions.
> > 
> > An idea: instead of having to expore the function
> to each dynlayer_XXX
> > file..
> > Is there some way we can 'notify' the main file
> that a certain function
> > should _NOT_ be inited
> > if it exists in a dynlayer_XXX file for the given
> browser/platform?
> > 
> > Or better, simply overwrite the function in the
> specific case
> > IE:
> > 
> > (fictional case)
> > 
> > Given we have a function setBlarg()
> > Given that this function is common for all
> browsers except for NS 4.x
> > The common code would be loaded first
> > then when the DynLayer_NS4x.js is loaded, it would
> overwrite
> > the function setBlarg() with the NS specific code.
> > if any other filre (ie; DynLayer_IE5x.js) is
> loaded
> > the function setBlarg() would stand as declared as
> the file DynLAyer_IE5X.js
> > would not overwrite it..
> > 
> > SO:
> > case 1 NS4.71 on Windows:
> > load DynLayer_Common.js: setBlarg() is defined
> > then
> > Load DynLayer_NS4.js: setBlarg() is overwritten
> > 
> > 
> > case 2 IE 5.55 on Windows:
> > load DynLayer_Common.js: setBlarg() is defined
> > then
> > Load DynLayer_IeE5X.js: setBlarg() is not
> overwritten as the is no
> > defination in this file
> > 
> > 
> > 
> >
>
-------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> >
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
> 
> 
> 
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to