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

Fixes #1392 - Add support for defaultEventHandlers #1405

Merged
merged 10 commits into from
Dec 19, 2018
Merged

Fixes #1392 - Add support for defaultEventHandlers #1405

merged 10 commits into from
Dec 19, 2018

Conversation

carloslancha
Copy link
Contributor

No description provided.

@carloslancha carloslancha changed the title Fixes #1392 - SF Fixes #1392 - Add support for defaultEventHandlers Dec 18, 2018
Copy link
Contributor

@jbalsas jbalsas left a comment

Choose a reason for hiding this comment

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

Hey @carloslancha, I've just left a small comment, other than that looks good to me, feel free to address it and merge this if makes sense!


if (
listeners.length === 0 &&
(this.defaultEventHandler && !this.defaultEventHandler[handlerName])
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this would miss the case where we don't have a defaultEventHandler, wouldn't it? Should this be

listeners.length === 0 && (!this.defaultEventHandler || !this.defaultEventHandler[handlerName])

Copy link
Contributor

Choose a reason for hiding this comment

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

This might be hard to test, because the effect should be negligible and it would require testing implementation... 🤔

@jbalsas jbalsas merged commit 96da5f5 into liferay:develop Dec 19, 2018
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