[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src
Henry Castro
hcastro at collabora.com
Sat Jan 16 12:18:14 PST 2016
loleaflet/src/layer/tile/ImpressTileLayer.js | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
New commits:
commit 887eae52ba9878efca7d697058de208d15734823
Author: Henry Castro <hcastro at collabora.com>
Date: Sat Jan 16 14:38:50 2016 -0400
loleaflet: fixed js lint erros in layer/tile/ImpressTileLayer.js
diff --git a/loleaflet/src/layer/tile/ImpressTileLayer.js b/loleaflet/src/layer/tile/ImpressTileLayer.js
index 302f286..6505f6d 100644
--- a/loleaflet/src/layer/tile/ImpressTileLayer.js
+++ b/loleaflet/src/layer/tile/ImpressTileLayer.js
@@ -22,8 +22,8 @@ L.ImpressTileLayer = 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) {
@@ -40,11 +40,13 @@ L.ImpressTileLayer = 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;
@@ -69,7 +71,7 @@ L.ImpressTileLayer = 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