diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-31 10:33:00 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-31 10:33:00 -0400 |
commit | 803b58c2d41f74b852f6247472d415e1d7103108 (patch) | |
tree | 4aaede82fbfd0c328a228860a1ca41e3140d1219 /webapp/components | |
parent | c8b2af62468c5d0906ba08d3e2a378681f99eb08 (diff) | |
download | chat-803b58c2d41f74b852f6247472d415e1d7103108.tar.gz chat-803b58c2d41f74b852f6247472d415e1d7103108.tar.bz2 chat-803b58c2d41f74b852f6247472d415e1d7103108.zip |
Fixed PostsView not unregistering it's PreferenceStore listener when unmounting
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/posts_view.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/components/posts_view.jsx b/webapp/components/posts_view.jsx index 647c7f086..adeef5abc 100644 --- a/webapp/components/posts_view.jsx +++ b/webapp/components/posts_view.jsx @@ -385,6 +385,7 @@ export default class PostsView extends React.Component { componentWillUnmount() { window.removeEventListener('resize', this.handleResize); this.scrollStopAction.cancel(); + PreferenceStore.removeChangeListener(this.updateState); } componentDidUpdate() { if (this.props.postList != null) { |