[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src
Henry Castro
hcastro at collabora.com
Sat Jan 16 12:17:00 PST 2016
loleaflet/src/layer/tile/WriterTileLayer.js | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
New commits:
commit f7312f808d467863d49ebada838d7963a63a3c22
Author: Henry Castro <hcastro at collabora.com>
Date: Sat Jan 16 14:32:47 2016 -0400
loleaflet: fixed js lint erros in layer/tile/WriterTileLayer.js
diff --git a/loleaflet/src/layer/tile/WriterTileLayer.js b/loleaflet/src/layer/tile/WriterTileLayer.js
index ed9f81c..31be837 100644
--- a/loleaflet/src/layer/tile/WriterTileLayer.js
+++ b/loleaflet/src/layer/tile/WriterTileLayer.js
@@ -23,8 +23,8 @@ L.WriterTileLayer = 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) {
@@ -41,11 +41,13 @@ L.WriterTileLayer = 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;
@@ -70,7 +72,7 @@ L.WriterTileLayer = 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