added .off() for dropdown hide event on LHS header

This commit is contained in:
JoramWilander
2015-07-30 12:11:01 -04:00
parent e5c79cd193
commit 4b531ef8c4

View File

@@ -29,6 +29,8 @@ var NavbarDropdown = React.createClass({
},
componentWillUnmount: function() {
UserStore.removeTeamsChangeListener(this._onChange);
$(this.refs.dropdown.getDOMNode()).off('hide.bs.dropdown');
},
_onChange: function() {
if (this.isMounted()) {