diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 0e5a496b..04c5c5b4 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -35,6 +35,9 @@ }).render(); window.addEventListener('resize', this.inbox.resize.bind(this.inbox)); + window.addEventListener('beforeunload', function () { + this.inbox.stopListening(); + }.bind(this)); }, events: { 'keyup': 'keyup',