#965 enhancement
Jehon

Prototype in gear worker

Reported by Jehon | December 16th, 2009 @ 04:10 PM | in 2.0

In the specific case when you use Google Gears API, you can create a "Worker", who will make some job in javascript in the background.

When you are inside the worker, you have no access to "window" or "document" object. So Prototype can not be instantiated, while most of its function are still very usefull.

I propose that, at the beginning of Prototype initialisation, you test that "window" and "document" exists, otherwise, you do not initialise the DOM releated functions...

I know it is very specific, but without that, this framework can not be used...

What is your opignon on that?

Thank you a lot

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Tags

Pages