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

Henry Castro hcastro at collabora.com
Sat Jan 16 10:27:07 PST 2016


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

New commits:
commit 68a10e3976fceb44b12b7ad96ad108a7b7882d46
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 7fa37b9..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