Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Fix sentry bug #373

Merged
merged 2 commits into from
Jul 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"dev": "node webpack/dev-server.js & PORT=8000 node start.js",
"start": "NODE_PATH=\"./src\" node ./start",
"build": "node ./node_modules/webpack/bin/webpack.js --config webpack/prod.config.js",
"postinstall": "npm run build",
"validate": "npm ls",
"analyze:build": "env NODE_ENV=production ./node_modules/webpack/bin/webpack.js --json --config webpack/prod.config.js > bundle-stats.json",
"analyze:json": "webpack-bundle-size-analyzer bundle-stats.json"
Expand Down
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