[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Thu Sep 1 20:07:34 UTC 2016
loleaflet/src/layer/tile/TileLayer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit de770a32e89d585fa8063849617ec30fb08007e9
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Fri Sep 2 01:19:33 2016 +0530
loleaflet: Fix inconsistent user count for views going active
Iterating viewCursor object won't give correct number of live
viewids because inactive views don't receive any viewcursor
messages.
Rather use map._viewInfo object because as of now, we do receive
these 'addview' message for inactive views, so this place should
always remain updated and prevent giving inconsistent view counts
across different clients.
Change-Id: If210049e76b5f2b91371a21863f6019cbccdb9ca
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index a2d6850..388582f 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -699,7 +699,7 @@ L.TileLayer = L.GridLayer.extend({
},
_onRemAllViewMsg: function(textMsg) {
- for (var viewId in this._viewCursors) {
+ for (var viewId in this._map._viewInfo) {
this._onRemViewMsg('remview: ' + viewId);
}
},
More information about the Libreoffice-commits
mailing list