Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix sentry bug
  • Loading branch information
mmahalwy committed Jul 3, 2016
commit c610bb7ab39eb12fb9b4ba8232d2c088750dca6f
6 changes: 6 additions & 0 deletions src/components/LazyLoad/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ export default class LazyLoad extends Component {
}
}

componentWillUnmount() {
if (__CLIENT__) {
window.removeEventListener('scroll', this.onScroll, true);
}
}

onScroll = () => {
const { isLoading, isEnd, offset, onLazyLoad } = this.props;
const dom = ReactDOM.findDOMNode(this);
Expand Down
3 changes: 1 addition & 2 deletions src/containers/Surah/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ export default class Surah extends Component {
/>
</li>
<li>|</li>
<li><Share surah={surah}/></li>

<li><Share surah={surah} /></li>
</ul>
</Col>
</Row>
Expand Down