diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-11-12 11:19:59 -0500 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-11-12 11:19:59 -0500 |
commit | 50815f9be7195d736debd6bcd9d300dd95bbc738 (patch) | |
tree | d6060dce1cf036285019eac6ccba1ff07df6ad80 /web/react/components/rhs_thread.jsx | |
parent | 13a251a5ee940383e5a026284275b1f31fb476df (diff) | |
download | chat-50815f9be7195d736debd6bcd9d300dd95bbc738.tar.gz chat-50815f9be7195d736debd6bcd9d300dd95bbc738.tar.bz2 chat-50815f9be7195d736debd6bcd9d300dd95bbc738.zip |
Rename areStatesEqual to areObjectsEqual and make it more comprehensive and accurate.
Diffstat (limited to 'web/react/components/rhs_thread.jsx')
-rw-r--r-- | web/react/components/rhs_thread.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/rhs_thread.jsx b/web/react/components/rhs_thread.jsx index fe57bed28..7c11de7cf 100644 --- a/web/react/components/rhs_thread.jsx +++ b/web/react/components/rhs_thread.jsx @@ -82,7 +82,7 @@ export default class RhsThread extends React.Component { } onChange() { var newState = this.getStateFromStores(); - if (!Utils.areStatesEqual(newState, this.state)) { + if (!Utils.areObjectsEqual(newState, this.state)) { this.setState(newState); } } @@ -112,7 +112,7 @@ export default class RhsThread extends React.Component { } var newState = this.getStateFromStores(); - if (!Utils.areStatesEqual(newState, this.state)) { + if (!Utils.areObjectsEqual(newState, this.state)) { this.setState(newState); } } |