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

refactor componentWillUnmount() #2064

Merged
merged 1 commit into from
Oct 18, 2017
Merged

refactor componentWillUnmount() #2064

merged 1 commit into from
Oct 18, 2017

Conversation

riophae
Copy link
Contributor

@riophae riophae commented Oct 15, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 92.633% when pulling ec45b86 on riophae:patch into 7523c20 on JedWatson:master.

@@ -143,11 +143,7 @@ class Select extends React.Component {
}

componentWillUnmount () {
if (!document.removeEventListener && document.detachEvent) {
document.detachEvent('ontouchstart', this.handleTouchOutside);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

detachEvent is for supporting IE8 here. However, IE8 doesn't support touch events, right?

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah, you're right about this.

@JedWatson
Copy link
Owner

Thanks for the cleanup, @riophae

@JedWatson JedWatson merged commit b68af1b into JedWatson:master Oct 18, 2017
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.

3 participants