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

Re: Constructor called too late

0 views
Skip to first unread message

Jeferson Hultmann

unread,
Oct 23, 2009, 1:41:58 AM10/23/09
to dev-te...@lists.mozilla.org
A little over four months ago I wrote:
>
> So my question is: how do I make my code run before any<script> is executed?
>


I forgot to close this thread. I solved the problem by using
jsd.topLevelHook to trigger my XBL constructor.

It is necessary only for frames/iframes. For top documents,
onLocationChange can be used.

Here is the code, it might be useful to someone else: :-)

http://www.mozdev.org/source/browse/br/multifox/src/modules/main.xbl.js?rev=1.1


--
Jeferson

0 new messages