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

Commit

Permalink
Fix sentry bug (#373)
Browse files Browse the repository at this point in the history
* Fix sentry bug

* no build
  • Loading branch information
mmahalwy authored Jul 3, 2016
1 parent eed2ce3 commit 1a21634
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
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

0 comments on commit 1a21634

Please sign in to comment.