Hi, As I understand it, one of the goals of Prototype 2 is to radically improve the modularization of the library so that (for instance) it's possible to build Prototype with no browser dependencies (for server- side or other use).
But that doesn't exist right now. You could create it yourself fairly easily, though, working from the Prototype source[1][2]. The *source* is highly modular already, it shouldn't be too difficult, by and large, to build a copy with all of the DOM stuff left out. There will be a couple of "gotchas," like `Function#defer`, which seems like a pure language thing but which has a dependency on `window` (because it uses `window.setTimeout`). [1] http://prototypejs.org/contribute [2] http://github.com/sstephenson/prototype FWIW, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On May 31, 2:07 am, pedz <pedz...@gmail.com> wrote: > I'm writing some code that users web workers and the code I wrote used > your nifty Array and Hash classes so I tried to load prototype.js into > my web worker and I get "window not defined" -- which is true. > > Has there been any discussion about making prototype detect if it is > in a web worker and not touch the window object? All the DOM stuff is > not usable and there is a lot like that but there are other things > which are usable. > > Just curious if this has been thought of. > > Thanks > pedz -- 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-scriptacul...@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.