"on window close" correct disconnect

This commit is contained in:
Alexey Raksha
2012-03-16 14:49:23 +04:00
parent ecd752a7ea
commit edef56ee8e

View File

@@ -52,7 +52,7 @@
(!this.isXDomain() || io.util.ua.hasCORS)) {
var self = this;
io.util.on(global, 'beforeunload', function () {
io.util.on(global, 'unload', function () {
self.disconnectSync();
}, false);
}