From 5f367f7c75aebe20fa48dbd772aefd3bcef25c46 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 17 Jul 2015 19:01:11 +0100 Subject: [PATCH] missing event listener remove --- src/controllers/pages/MatrixChat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/pages/MatrixChat.js b/src/controllers/pages/MatrixChat.js index 658ce33b..44df71a1 100644 --- a/src/controllers/pages/MatrixChat.js +++ b/src/controllers/pages/MatrixChat.js @@ -66,6 +66,7 @@ module.exports = { componentWillUnmount: function() { dis.unregister(this.dispatcherRef); document.removeEventListener("keydown", this.onKeyDown); + window.removeEventListener("focus", this.onFocus); }, componentDidUpdate: function() {