Subj : Re: Sealing Scopes To : netscape.public.mozilla.jseng From : Merten Schumann Date : Fri Oct 08 2004 11:20 am try to seal the scope later, after you have create it's "child" ... works for me, I'm using it this way to have a sealed "root" scope to force people to use "var" variables (local) instead of globals root pseydo-root (seal root after pseydo-root is installed) user-scope1 user-scope2 ... In this way my user scopes can work but have no globals, that's what I want Hope this helps Merten > -----Original Message----- > From: mozilla-jseng-admin@mozilla.org > [mailto:mozilla-jseng-admin@mozilla.org] On Behalf Of Miro > Sent: Friday, October 08, 2004 9:17 AM > To: mozilla-jseng@mozilla.org > Subject: Re: Sealing Scopes > > Thank you for answer. > > If I create scope using > > Scriptable scope = context.newObject(sharedScope); > > and sharedScope was sealed, then scope is also sealed( and I can't > unseal it) > This is my problem. I can't go over it the way you wrote. The only way > that works is not to seal sharedScope, but I do not like it( I want > sharedScope to be sealed). > > Miro > _______________________________________________ > mozilla-jseng mailing list > mozilla-jseng@mozilla.org > http://mail.mozilla.org/listinfo/mozilla-jseng > .