[Libreoffice-commits] online.git: loleaflet/src

Miklos Vajna vmiklos at collabora.co.uk
Tue Nov 17 12:09:52 PST 2015


 loleaflet/src/core/Socket.js          |    1 +
 loleaflet/src/layer/tile/TileLayer.js |    1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 346b76fd93efe1ccb5b233ce0b0c7bdbe0447fd3
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Nov 17 21:09:29 2015 +0100

    loleaflet: move decoding comment where decoding happens

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index d75a7cb..ad240ba 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -86,6 +86,7 @@ L.Socket = {
 				// if it's not a tile, parse the whole message
 				textMsg = String.fromCharCode.apply(null, imgBytes);
 			}
+			// Decode UTF-8.
 			textMsg = decodeURIComponent(window.escape(textMsg));
 		}
 		else {
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 6232f52..24b0bb2 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -903,7 +903,6 @@ L.TileLayer = L.GridLayer.extend({
 			this._map.fire('error', {msg: 'Oops, no content available yet'});
 		}
 		else {
-			// Decode UTF-8.
 			e.clipboardData.setData('text/plain', this._selectionTextContent);
 		}
 	},


More information about the Libreoffice-commits mailing list