Hi 2 all !

1. I hava a window class
public class Window extends ScriptableObject {
        public Window() {}

        public static Window getInstance() {
                Window winInstance = new Window();
                ....
        }

        public void jsSet_addEventListener(String eventName, Function action,
Boolean phase) {
                System.out.println("TODO : class:[" + this.getClass().getName() 
+
"]." + eventName);
        }


2. ScriptableObject.defineClass(runtime.scope, Window.class);

I try jsSet_ and jsFunction_
error is occurred : Cannot find function addEventListener in object
Window.

what's wrong in my code ?
thx
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to