missing event listener remove

This commit is contained in:
David Baker 2015-07-17 19:01:11 +01:00
parent 5c7bef3107
commit 5f367f7c75
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ module.exports = {
componentWillUnmount: function() { componentWillUnmount: function() {
dis.unregister(this.dispatcherRef); dis.unregister(this.dispatcherRef);
document.removeEventListener("keydown", this.onKeyDown); document.removeEventListener("keydown", this.onKeyDown);
window.removeEventListener("focus", this.onFocus);
}, },
componentDidUpdate: function() { componentDidUpdate: function() {