On Jan 24, 8:46 am, Радослав Станков <rstan...@gmail.com> wrote:
> Some time ago I played with prototype to make it more other frameworks
> friendly. So  I wrapped all prototype.js code in closure, and in the
> end just pass to the window all needed objects defined by prototype, I
> excluded some objects like - Abstract, Field, Form, Try, Insertation,
> witch I think should not be global variables or are deprecated. So I

I agree. It seems like those "globals" are almost never used.
Unfortunately, there's to much of a legacy code relying on all of
this.

> this way I released from the framework only the variable I needed and
> use. Obviously I didn't prevent javascript prototype extensions, but I
> didn't want to do so :)

Err... Extending host objects is not any better (if not worse) than
spawning global variables. You can find plenty of evidence in a bug
tracker.

--
kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to