Skip to content

refactor componentWillUnmount()#2064

Merged
JedWatson merged 1 commit intoJedWatson:masterfrom
riophae:patch
Oct 18, 2017
Merged

refactor componentWillUnmount()#2064
JedWatson merged 1 commit intoJedWatson:masterfrom
riophae:patch

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.


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