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

custom events #674

Merged
merged 3 commits into from May 13, 2015
Merged

custom events #674

merged 3 commits into from May 13, 2015

Conversation

rumman23
Copy link
Contributor

@rumman23 rumman23 commented Apr 8, 2015

This change enables listening to custom event types without explicit declaration in classes as proposed in #670. There are basic emitter tests as well.

if (entry.install && handlers.length == 1)
entry.install.call(this, type);
}
var entry = this._eventTypes[type],
Copy link
Contributor

Choose a reason for hiding this comment

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

This assumes that _eventTypes exists, which is not true when there are no _events on class. This is case for example of Project class.

@lehni
Copy link
Member

lehni commented May 13, 2015

Looks good, thanks! Will merge and then look into details, such as the comment above by @jardakotesovec.

lehni added a commit that referenced this pull request May 13, 2015
@lehni lehni merged commit 75c6db6 into paperjs:develop May 13, 2015
lehni added a commit that referenced this pull request May 13, 2015
@lehni
Copy link
Member

lehni commented May 13, 2015

@jardakotesovec this has been addressed in 6b428f5

@rumman23 rumman23 deleted the 670-custom-events branch May 18, 2015 07:28
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.

None yet

3 participants