summaryrefslogtreecommitdiffstats
path: root/web/react/components/search_channel_provider.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-30 14:12:09 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-12-01 16:25:58 -0500
commit956d460b108f278b6cfbcb728241b89b992b2a55 (patch)
tree516b6ef634dbbad01a908e4d49c8f7935b4f795f /web/react/components/search_channel_provider.jsx
parentbedb1a751f45e39c5747f2c6280dae958748e2f0 (diff)
downloadchat-956d460b108f278b6cfbcb728241b89b992b2a55.tar.gz
chat-956d460b108f278b6cfbcb728241b89b992b2a55.tar.bz2
chat-956d460b108f278b6cfbcb728241b89b992b2a55.zip
Changed SuggestionProviders to be regular objects and not singletons
Diffstat (limited to 'web/react/components/search_channel_provider.jsx')
-rw-r--r--web/react/components/search_channel_provider.jsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/react/components/search_channel_provider.jsx b/web/react/components/search_channel_provider.jsx
index 5c7ffac2e..6b2fa2d62 100644
--- a/web/react/components/search_channel_provider.jsx
+++ b/web/react/components/search_channel_provider.jsx
@@ -31,7 +31,7 @@ SearchChannelSuggestion.propTypes = {
onClick: React.PropTypes.func
};
-class SearchChannelProvider {
+export default class SearchChannelProvider {
handlePretextChanged(suggestionId, pretext) {
const captured = (/\b(?:in|channel):\s*(\S*)$/i).exec(pretext);
if (captured) {
@@ -67,5 +67,3 @@ class SearchChannelProvider {
}
}
}
-
-export default new SearchChannelProvider(); \ No newline at end of file