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

Henry Castro hcastro at collabora.com
Mon Feb 8 18:03:56 UTC 2016


 loleaflet/src/layer/tile/TileLayer.js |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 0357249e906e04d14b49c4fd357c029da1829db1
Author: Henry Castro <hcastro at collabora.com>
Date:   Mon Feb 8 14:02:20 2016 -0400

    loleaflet: fixed js lint errors in src/layer/tile/TileLayer.js
    
    still pending "error  Don't make functions within a loop  no-loop-func"

diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 397b028..bfb151e 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -395,8 +395,9 @@ L.TileLayer = L.GridLayer.extend({
 		}
 
 		var errorCode = -1;
-		if (command.errorCode !== undefined)
+		if (command.errorCode !== undefined) {
 			errorCode = command.errorCode;
+		}
 
 		this._map.fire('error', {cmd: command.errorCmd, kind: command.errorKind, id: errorId, code: errorCode});
 	},
@@ -1098,7 +1099,7 @@ L.TileLayer = L.GridLayer.extend({
 					if (file.type.match(/image.*/)) {
 						var reader = new FileReader();
 						var socket = this._map._socket;
-						reader.onload = (function(aImg) {
+						reader.onload = (function() {
 							return function(e) {
 								var blob = new Blob(['paste mimetype=' + file.type + '\n', e.target.result]);
 								socket.sendMessage(blob);


More information about the Libreoffice-commits mailing list