kjs: variables with/without var [PATCH]

David Faure dfaure at klaralvdalens-datakonsult.se
Thu Jan 23 21:03:51 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 23 January 2003 21:53, David Faure wrote:
> Let's see ... Oh yes, you're right. At least in mozilla, alert(self) shows that
> the global object is indeed the frameset, in SomeFunc(), even when called
> from the frame.

Flawed reasoning. It simply means that the frameset's globalobject is in
the scope chain (and that the calling frame's globalobject is either not
in the scope chain, or is after the frameset's one).

I believe Maciej is correct then. The right place to put new vars is the last
item in the scope chain. Will try that (this bugfix is quite urgent, the 3.1 code
has been updated to include this, it seems :(((

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Klarälvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+MFi372KcVAmwbhARAs4GAKCkSR1GgcbjeP5kIOFQ26/hNfZQZwCfQcfT
REdHjvW+xQoliGxVB7hw51I=
=kDmu
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list