Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

[core] React 16.3.0 support #83

Merged
merged 1 commit into from
May 27, 2018
Merged

[core] React 16.3.0 support #83

merged 1 commit into from
May 27, 2018

Conversation

oliviertassinari
Copy link
Owner

Closes #82

this.applyListeners(off);
}

applyListeners(onOrOff) {
const { target } = this.props;
applyListeners(onOrOff, props = this.props) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this?

Copy link
Owner Author

Choose a reason for hiding this comment

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

When the component update, we remove the old listeners and add the new ones.

@oliviertassinari
Copy link
Owner Author

A small win is still a win :)
capture d ecran 2018-05-27 a 20 49 13

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

Successfully merging this pull request may close these issues.

None yet

2 participants