diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-09-02 15:56:13 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-09-02 15:56:13 -0400 |
commit | a020391d93feb93f328cfca4edef6fb8a46cd86c (patch) | |
tree | ab21811abb65589d07cd915382a01728b6bb035e /web/react/components/post_list.jsx | |
parent | c7cafb6ac7404b62f38b48d3ec5782863abf203a (diff) | |
download | chat-a020391d93feb93f328cfca4edef6fb8a46cd86c.tar.gz chat-a020391d93feb93f328cfca4edef6fb8a46cd86c.tar.bz2 chat-a020391d93feb93f328cfca4edef6fb8a46cd86c.zip |
Replaced broken remaining calls to getDOMNode with React.findDOMNode
Diffstat (limited to 'web/react/components/post_list.jsx')
-rw-r--r-- | web/react/components/post_list.jsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 8587b981d..62925b9c5 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -577,14 +577,14 @@ export default class PostList extends React.Component { var order = this.state.postList.order; var channelId = this.state.channel.id; - $(this.refs.loadmore.getDOMNode()).text('Retrieving more messages...'); + $(React.findDOMNode(this.refs.loadmore)).text('Retrieving more messages...'); Client.getPostsPage( channelId, order.length, Constants.POST_CHUNK_SIZE, function success(data) { - $(this.refs.loadmore.getDOMNode()).text('Load more messages'); + $(React.findDOMNode(this.refs.loadmore)).text('Load more messages'); this.gotMorePosts = true; this.setState({numToDisplay: this.state.numToDisplay + Constants.POST_CHUNK_SIZE}); @@ -609,7 +609,7 @@ export default class PostList extends React.Component { Client.getProfiles(); }.bind(this), function fail(err) { - $(this.refs.loadmore.getDOMNode()).text('Load more messages'); + $(React.findDOMNode(this.refs.loadmore)).text('Load more messages'); AsyncClient.dispatchError(err, 'getPosts'); }.bind(this) ); @@ -667,4 +667,4 @@ export default class PostList extends React.Component { </div> ); } -}
\ No newline at end of file +} |