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

Event listeners #18

Merged
merged 2 commits into from
Jul 14, 2015
Merged

Event listeners #18

merged 2 commits into from
Jul 14, 2015

Conversation

bantic
Copy link
Collaborator

@bantic bantic commented Jul 13, 2015

Adds an EventListener mixin that is mixed into the base View class, the Editor, and the ToolbarButton. It adds an addEventListener method that keeps track of added listeners so that the mixed-in removeAllEventListeners method can be called later.

@bantic bantic force-pushed the event-listeners branch from 2acdd0a to 5f99f9f Compare July 13, 2015 22:49
@mixonic mixonic mentioned this pull request Jul 13, 2015
30 tasks
@@ -0,0 +1,14 @@
export default class EventListenerMixin {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not keep mixins as pain objects? Used this way, the prototype is basically just a bag for the mixin properties. An object would be sufficient.

@mixonic
Copy link
Contributor

mixonic commented Jul 14, 2015

Very cool, but needs a rebase.

We should really nuke utils.

@bantic bantic force-pushed the event-listeners branch from 5f99f9f to 9ef8f59 Compare July 14, 2015 13:48
bantic added a commit that referenced this pull request Jul 14, 2015
@bantic bantic merged commit 0c25b1f into summertime Jul 14, 2015
@bantic bantic deleted the event-listeners branch July 14, 2015 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants