Clean up some dead code
parent
79e5f368ed
commit
6d3e240aa9
|
@ -54,14 +54,6 @@ class Followers extends ImmutablePureComponent {
|
||||||
this.column.scrollTop();
|
this.column.scrollTop();
|
||||||
}
|
}
|
||||||
|
|
||||||
handleScroll = (e) => {
|
|
||||||
const { scrollTop, scrollHeight, clientHeight } = e.target;
|
|
||||||
|
|
||||||
if (scrollTop === scrollHeight - clientHeight && this.props.hasMore) {
|
|
||||||
this.props.dispatch(expandFollowers(this.props.params.accountId));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
handleLoadMore = debounce(() => {
|
handleLoadMore = debounce(() => {
|
||||||
this.props.dispatch(expandFollowers(this.props.params.accountId));
|
this.props.dispatch(expandFollowers(this.props.params.accountId));
|
||||||
}, 300, { leading: true });
|
}, 300, { leading: true });
|
||||||
|
|
|
@ -54,14 +54,6 @@ class Following extends ImmutablePureComponent {
|
||||||
this.column.scrollTop();
|
this.column.scrollTop();
|
||||||
}
|
}
|
||||||
|
|
||||||
handleScroll = (e) => {
|
|
||||||
const { scrollTop, scrollHeight, clientHeight } = e.target;
|
|
||||||
|
|
||||||
if (scrollTop === scrollHeight - clientHeight && this.props.hasMore) {
|
|
||||||
this.props.dispatch(expandFollowing(this.props.params.accountId));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
handleLoadMore = debounce(() => {
|
handleLoadMore = debounce(() => {
|
||||||
this.props.dispatch(expandFollowing(this.props.params.accountId));
|
this.props.dispatch(expandFollowing(this.props.params.accountId));
|
||||||
}, 300, { leading: true });
|
}, 300, { leading: true });
|
||||||
|
|
Loading…
Reference in New Issue