Small, fast, elegant, powerful, and cross platform JavaScript OOP library. Support main(), singleton, super call, private, mixins, plugins, AOP and more.
I am learning jsface, and have written a test class to debug the structure of how I want to write my classes before I code them full blown. Everything works great, unless I try to add EventEmitters to the object. I get the following error
f.updateConfig("new config");
^
TypeError: Object [object Object] has no method 'updateConfig'
If I comment out the util.inherits line (as shown), I can access all of the class methods and everything works as expected (just no eventemitters). I have used this eventemitter api on non jsFace objects and it works well. Any ideas? Any alternatives to the EventEmitter?
I am learning jsface, and have written a test class to debug the structure of how I want to write my classes before I code them full blown. Everything works great, unless I try to add EventEmitters to the object. I get the following error
By event code is as follows:
If I comment out the util.inherits line (as shown), I can access all of the class methods and everything works as expected (just no eventemitters). I have used this eventemitter api on non jsFace objects and it works well. Any ideas? Any alternatives to the EventEmitter?
Thanks.