diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-09 14:55:29 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-09 14:55:29 -0700 |
commit | fe6f9437ab141b3a433eed66faee60c1d8924a0d (patch) | |
tree | 65ad4c7b9fe34753900fb65b4d639d43d3e53b31 /web | |
parent | 702112dfb315462919d276a72be2936ad45d7ceb (diff) | |
download | chat-fe6f9437ab141b3a433eed66faee60c1d8924a0d.tar.gz chat-fe6f9437ab141b3a433eed66faee60c1d8924a0d.tar.bz2 chat-fe6f9437ab141b3a433eed66faee60c1d8924a0d.zip |
Added comments for the force update functions
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/post_list.jsx | 1 | ||||
-rw-r--r-- | web/react/components/sidebar_right.jsx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index 2cccdff22..177e4a1db 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -196,6 +196,7 @@ module.exports = React.createClass({ } this.setState(newState); } else { + // Updates the timestamp on each post this.forceUpdate() } }, diff --git a/web/react/components/sidebar_right.jsx b/web/react/components/sidebar_right.jsx index baffa0ab7..60c8ffae6 100644 --- a/web/react/components/sidebar_right.jsx +++ b/web/react/components/sidebar_right.jsx @@ -24,6 +24,7 @@ module.exports = React.createClass({ UserStore.removeStatusesChangeListener(this._onChange); }, _onChange: function() { + // Updates the timestamp on each post this.forceUpdate(); }, _onSelectedChange: function(from_search) { |