aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Feeds.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-25 13:02:30 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit28679bfba2d4160cd54fe368e5412aa622cd8c6e (patch)
treea532f4074a9492733a9bad67ed552d8bf18bb3ee /vnext/src/components/Feeds.js
parentcfc03954dcc9d4446e5993c6cdfb5e7e73d71a71 (diff)
transform-class-properties
Diffstat (limited to 'vnext/src/components/Feeds.js')
-rw-r--r--vnext/src/components/Feeds.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js
index 0f12575f..5e9c14d0 100644
--- a/vnext/src/components/Feeds.js
+++ b/vnext/src/components/Feeds.js
@@ -61,7 +61,6 @@ class Feed extends React.Component {
this.state = {
msgs: []
};
- this.loadMessages = this.loadMessages.bind(this);
}
componentDidMount() {
this.loadMessages(this.props.visitor.hash, this.props.location.search);
@@ -72,7 +71,7 @@ class Feed extends React.Component {
this.loadMessages(nextProps.visitor.hash, nextProps.location.search)
}
}
- loadMessages(hash = '', filter = '') {
+ loadMessages = (hash = '', filter = '') => {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
this.setState({ msgs: [] })