Fix handlers registered again on reconnect in drive and poll

This commit is contained in:
yflory
2017-10-24 10:42:08 +02:00
parent 204f3e1441
commit 2dd3c42fd5
2 changed files with 6 additions and 0 deletions

View File

@@ -3005,7 +3005,10 @@ define([
APP.$displayName.text(name);
});
};
var firstConnection = true;
var onReady = function () {
if (!firstConnection) { return; } // TODO fix this issue in listmap
firstConnection = false;
$('body').css('display', '');
APP.files = proxy;
if (!proxy.drive || typeof(proxy.drive) !== 'object') { proxy.drive = {}; }