[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src

Henry Castro hcastro at collabora.com
Sat Jan 16 12:15:08 PST 2016


 loleaflet/src/layer/tile/CalcTileLayer.js |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

New commits:
commit ceb2a2014ceb552579785e5e224fe317b3955e35
Author: Henry Castro <hcastro at collabora.com>
Date:   Sat Jan 16 14:25:14 2016 -0400

    loleaflet: fixed js lint erros in layer/tile/CalcTileLayer.js

diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index ce57e7c..d45d9b9 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -31,8 +31,8 @@ L.CalcTileLayer = L.TileLayer.extend({
 		var visibleBottomRight = this._latLngToTwips(this._map.getBounds().getSouthEast());
 		var visibleArea = new L.Bounds(visibleTopLeft, visibleBottomRight);
 
-                var tilePositionsX = "";
-		var tilePositionsY = "";
+		var tilePositionsX = '';
+		var tilePositionsY = '';
 		var needsNewTiles = false;
 
 		for (var key in this._tiles) {
@@ -49,11 +49,13 @@ L.CalcTileLayer = L.TileLayer.extend({
 				}
 				if (visibleArea.intersects(bounds)) {
 					if (!this._transientInvalidationKeys[key]) {
-						if (tilePositionsX !== "")
+						if (tilePositionsX !== '') {
 							tilePositionsX += ',';
+						}
 						tilePositionsX += tileTopLeft.x;
-						if (tilePositionsY !== "")
+						if (tilePositionsY !== '') {
 							tilePositionsY += ',';
+						}
 						tilePositionsY += tileTopLeft.y;
 						needsNewTiles = true;
 						this._transientInvalidationKeys[key] = true;
@@ -78,7 +80,7 @@ L.CalcTileLayer = L.TileLayer.extend({
 				'tilewidth=' + this._tileWidthTwips + ' ' +
 				'tileheight=' + this._tileHeightTwips;
 
-			this._map._socket.sendMessage(message, "");
+			this._map._socket.sendMessage(message, '');
 		}
 
 		for (key in this._tileCache) {


More information about the Libreoffice-commits mailing list