Brent wrote:
> Regarding addons, both my genealogy and bookmark
> addons make heavy use of secondary functions.  If you
> add the global reference stuff you were talking about
> would I have to change all of my searches or just my
> library .js files?

I'm 95% sure you would have to just change your library .js files.

> I think I'm missing the point of doing the global
> reference stuff for functions: ie why do we need to do
> that?  I can see the issue with global variables but
> don't see the issue with functions.

When the 'eval' on the script is done in the global namespace, all the
functions are put in the global namespace.  If the 'eval' is done inside a
function, the eval'd script function identifiers are only visible in the
function that executed the eval.  The only way (AFAIK) to make them visible
in the global namespace is to assign a global reference to the local
function identifier.

Did that make any sense at all?



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-devel

Reply via email to