diff options
author | nickago <ngonella@calpoly.edu> | 2015-09-02 13:49:53 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-09-02 13:52:48 -0700 |
commit | d2904c4dcb84df4f9df8e16430cff21da5e46033 (patch) | |
tree | 0e60746d259e9ad633a33beef08e7709517e08cf /web/react/utils/utils.jsx | |
parent | aeecb467d752d01cb345b59876be7f284cf61285 (diff) | |
download | chat-d2904c4dcb84df4f9df8e16430cff21da5e46033.tar.gz chat-d2904c4dcb84df4f9df8e16430cff21da5e46033.tar.bz2 chat-d2904c4dcb84df4f9df8e16430cff21da5e46033.zip |
fixed bug in function binding causing trimWord to slip to end word of post
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r-- | web/react/utils/utils.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 6267ebd8f..4b071cdba 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -564,7 +564,7 @@ export function textToJsx(textin, options) { key={word + i + z + '_hash'} className={'theme ' + mClass + highlightSearchClass} href='#' - onClick={() => searchForTerm(trimWord)} //eslint-disable-line no-loop-func + onClick={searchForTerm.bind(this, trimWord)} //eslint-disable-line no-loop-func > {trimWord} </a> |