diff options
Diffstat (limited to 'app/javascript/mastodon/features/blocks/index.js')
-rw-r--r-- | app/javascript/mastodon/features/blocks/index.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/javascript/mastodon/features/blocks/index.js b/app/javascript/mastodon/features/blocks/index.js index 4af48cf9c..d8fd29325 100644 --- a/app/javascript/mastodon/features/blocks/index.js +++ b/app/javascript/mastodon/features/blocks/index.js @@ -28,16 +28,11 @@ class Blocks extends ImmutablePureComponent { intl: PropTypes.object.isRequired }; - constructor (props, context) { - super(props, context); - this.handleScroll = this.handleScroll.bind(this); - } - componentWillMount () { this.props.dispatch(fetchBlocks()); } - handleScroll (e) { + handleScroll = (e) => { const { scrollTop, scrollHeight, clientHeight } = e.target; if (scrollTop === scrollHeight - clientHeight) { |