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

@@ -1164,8 +1164,11 @@ define([
var rt = APP.rt = Listmap.create(listmapConfig);
APP.proxy = rt.proxy;
var firstConnection = true;
rt.proxy.on('create', onCreate)
.on('ready', function (info) {
if (!firstConnection) { return; } // TODO fix this issue in listmap
firstConnection = false;
common.getPadAttribute('userid', function (e, userid) {
if (e) { console.error(e); }
APP.userid = userid;