summaryrefslogtreecommitdiffstats
path: root/web/react/components/mention_list.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-26 15:16:14 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-26 15:45:52 -0400
commitbf555fae14db647d0f1711326126bf94194a0151 (patch)
tree063f1d1deb361a3eb490ff19cea00256b7a8939d /web/react/components/mention_list.jsx
parentb46c01b2903d49903cfcf6588097cb72d599b391 (diff)
downloadchat-bf555fae14db647d0f1711326126bf94194a0151.tar.gz
chat-bf555fae14db647d0f1711326126bf94194a0151.tar.bz2
chat-bf555fae14db647d0f1711326126bf94194a0151.zip
Refactoring post_store into post_store and search_store
Diffstat (limited to 'web/react/components/mention_list.jsx')
-rw-r--r--web/react/components/mention_list.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/mention_list.jsx b/web/react/components/mention_list.jsx
index 8c1da942d..cb7f71f15 100644
--- a/web/react/components/mention_list.jsx
+++ b/web/react/components/mention_list.jsx
@@ -2,7 +2,7 @@
// See License.txt for license information.
var UserStore = require('../stores/user_store.jsx');
-var PostStore = require('../stores/post_store.jsx');
+var SearchStore = require('../stores/search_store.jsx');
var AppDispatcher = require('../dispatcher/app_dispatcher.jsx');
var Mention = require('./mention.jsx');
@@ -66,7 +66,7 @@ export default class MentionList extends React.Component {
}
}
componentDidMount() {
- PostStore.addMentionDataChangeListener(this.onListenerChange);
+ SearchStore.addMentionDataChangeListener(this.onListenerChange);
$('.post-right__scroll').scroll(this.onScroll);
@@ -74,7 +74,7 @@ export default class MentionList extends React.Component {
$(document).click(this.onClick);
}
componentWillUnmount() {
- PostStore.removeMentionDataChangeListener(this.onListenerChange);
+ SearchStore.removeMentionDataChangeListener(this.onListenerChange);
$('body').off('keydown.mentionlist', '#' + this.props.id);
}