Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problems with singletons and multiple windows

0 views
Skip to first unread message

Alex Iskold

unread,
Oct 19, 2006, 12:04:35 AM10/19/06
to
We have this strange problem when singletons are not defined in secondary
windows.

Our code, uses quite a few singletons defined like this:

var gBlue_BeanUtils = new function() {
...
}

When running in a single window or even multiple windows we have no
problems.
However, as soon as the first window is closed, the code in the second and
other windows
stops working and throws an error saying that singletons are not defined.

We were under the impression that each window is essentially a separate
JavaScript sandbox. Is this not the case?

Thanks for your help,

Alex

--
alex iskold
founder & cto
http://www.adaptiveblue.com

0 new messages