Don't overwrite context.onunload

This commit is contained in:
Toby Zerner 2015-08-05 19:19:22 +09:30
parent 807c9295a4
commit cb2927f317

View File

@ -55,7 +55,7 @@ app.initializers.add('pusher', () => {
}
});
context.onunload = () => channels.main.unbind();
extend(context, 'onunload', () => channels.main.unbind());
});
});
@ -104,7 +104,7 @@ app.initializers.add('pusher', () => {
}
});
context.onunload = () => channels.main.unbind();
extend(context, 'onunload', () => channels.main.unbind());
});
});