Convert beforeunload listeners

This commit is contained in:
lilia 2015-05-13 11:23:59 -07:00
parent 002ff45312
commit 7afd0a02e8
4 changed files with 12 additions and 4 deletions

View file

@ -73,7 +73,7 @@
new SocketView().render().$el.appendTo(this.$('.socket-status'));
window.addEventListener('beforeunload', function () {
extension.windows.beforeUnload(function() {
this.inbox.stopListening();
}.bind(this));
},