react-infinite-scroll-up-n-down
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -113,6 +113,8 @@ 'use strict'; | ||
if (this.props.useWindow === false) { | ||
scrollEl = this.scrollComponent.parentNode; | ||
scrollEl = this.scrollComponent && this.scrollComponent.parentNode; | ||
} | ||
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture); | ||
if (scrollEl) { | ||
scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture); | ||
} | ||
} | ||
@@ -127,4 +129,6 @@ }, { | ||
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture); | ||
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture); | ||
if (scrollEl) { | ||
scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture); | ||
scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture); | ||
} | ||
} | ||
@@ -131,0 +135,0 @@ }, { |
{ | ||
"name": "react-infinite-scroll-up-n-down", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Infinite scroll component for React in ES6", | ||
@@ -76,2 +76,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
302
21759
13