On Wed, Dec 30, 2009 at 1:04 PM, Mark Storer <[email protected]> wrote:
> Err... can't you just use the parent scope of the current object? > Anything that extends "Scriptable" has a getParentScope(). You won't > have access to it in the constructor (since setParentScope hasn't been > called), but perhaps in your host's jsConstructor()? > > Hi Mark, I started with the constructor approach rather than the "current object" so got stuck there. What you're suggesting may in fact do the trick. I wasn't aware that setParentScope would be called between the Java constructor and the JS constructor. I'm currently exploring a path using a WrapFactory. If it doesn't pan out I'll give your suggestion a try. -- Daryl Stultz _____________________________________ 6 Degrees Software and Consulting, Inc. http://www.6degrees.com mailto:[email protected] _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
