Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement global event dispatcher #4

Open
bartaz opened this issue Jun 19, 2011 · 1 comment
Open

Implement global event dispatcher #4

bartaz opened this issue Jun 19, 2011 · 1 comment

Comments

@bartaz
Copy link
Collaborator

bartaz commented Jun 19, 2011

There should be one global shared object where all the events will be registered and triggered to remove unnecessary dependencies between modules.

@gustaff-weldon
Copy link
Owner

Observable class already in place
addEventListener(eventName, listener)
removeEventListener(eventName, listener)
fireEvent(eventName)

Right now used as mixin, it should not be hard to resign from mixing in, just reference as global singleton. Yet, I think event source will be needed in event data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants