loleaflet/src/layer/tile/TileLayer.js |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 9d82390ce8769559bed7ec8eb6d3dae515a3bde8
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Tue Dec 10 19:15:59 2019 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Wed Dec 11 11:14:12 2019 +0100

    jsdialog: correctly parse status of changed items
    
    Change-Id: I57384b07f6df5d2d3b0afd97ee47330644083f09
    Reviewed-on: https://gerrit.libreoffice.org/84889
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/loleaflet/src/layer/tile/TileLayer.js 
b/loleaflet/src/layer/tile/TileLayer.js
index e51b2f755..e7faca385 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -1471,12 +1471,8 @@ L.TileLayer = L.GridLayer.extend({
                var isPureJSON = textMsg.indexOf('=') === -1 && 
textMsg.indexOf('{') !== -1;
                if (isPureJSON) {
                        var json = JSON.parse(textMsg);
-
-                       for (var i = 0; i < json.items.length; i++) {
-                               var item = json.items[i];
-                               if (item.commandName && item.state) {
-                                       this._map.fire('commandstatechanged', 
item);
-                               }
+                       if (json.commandName && json.state) {
+                               this._map.fire('commandstatechanged', json);
                        }
                } else {
                        var index = textMsg.indexOf('=');
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to