If anyone else is interested, my changes are here:

git://github.com/pedz/prototype.git

It includes Class, Object, Enumerable, Hash, and Array.  There are
probably other items that can be added but that is all I need right
now.  My JSpec tests are passing with this new file.  I called it
prototype_webworker.js

Thank you all for your help,etc.
Perry

On May 31, 9:26 am, "T.J. Crowder" <[email protected]> wrote:
> 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 / comwww.crowdersoftware.com
>
> On May 31, 2:07 am, pedz <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to