On Apr 22, 12:33 am, wolffiex <[EMAIL PROTECTED]> wrote:
> Hi everyone,
> I'm new to embedding rhino. I have an object that has a getProperty
> method. I want to expose it in JavaScript as a plain 'ol javascript
> object. I've experimented with implementing a ScriptableObject that
> overrides "get" but I don't see how I can control the key enumeration
> -- i.e. the properties that are enumerated when you write a loop like:
>    for (var k in myObj)

Implementing this:
  
http://www.mozilla.org/rhino/apidocs/org/mozilla/javascript/ScriptableObject.html#getIds()
should do the trick.

Greets,
  Helge
--
http://www.helgehess.eu/
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to