OOP and custom events
in Using jQuery
•
13 years ago
Hello There,
I am new to JQuery but come from a Flex background, and I am struggling with events in jQuery.
I have the impression that events in jQuery are all bound to the dom. So far all examples I have seen bind to a dom element as in:
I would like to dispatch and recieve events between OOP style classes as in:
Perhaps this approach is not supported by jQuery. I have used the Yahoo library this way using :
Thanks very much,
- new YAHOO.util.CustomEvent("onDataChange");
Daniel Taylor
1