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

Henry Castro hcastro at collabora.com
Sat Jan 16 11:07:20 PST 2016


 loleaflet/src/control/Control.Zoom.js     |    2 +-
 loleaflet/src/core/Log.js                 |    2 +-
 loleaflet/src/core/Socket.js              |    2 +-
 loleaflet/src/map/handler/Map.Keyboard.js |    1 +
 4 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit f689dba6939700a59791f477d11e1936b64e7783
Author: Henry Castro <hcastro at collabora.com>
Date:   Sat Jan 16 15:06:50 2016 -0400

    loleaflet: fixed js lint errors misc files

diff --git a/loleaflet/src/control/Control.Zoom.js b/loleaflet/src/control/Control.Zoom.js
index 407a25b..c3a38d4 100644
--- a/loleaflet/src/control/Control.Zoom.js
+++ b/loleaflet/src/control/Control.Zoom.js
@@ -53,7 +53,7 @@ L.Control.Zoom = L.Control.extend({
 		}
 	},
 
-	_fitWidth: function (e) {
+	_fitWidth: function () {
 		if (!this._disabled) {
 			this._map.fitWidthZoom();
 		}
diff --git a/loleaflet/src/core/Log.js b/loleaflet/src/core/Log.js
index 551cff7..667378b 100644
--- a/loleaflet/src/core/Log.js
+++ b/loleaflet/src/core/Log.js
@@ -31,7 +31,7 @@ L.Log = {
 	},
 
 	print: function () {
-		console.log(this._getEntries());
+		// console.log(this._getEntries());
 	},
 
 	save: function () {
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index deeb560..beffb07 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -264,5 +264,5 @@ L.Socket = L.Class.extend({
 });
 
 L.socket = function (map) {
-    return new L.Socket(map);
+	return new L.Socket(map);
 };
diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index 1d6ed59..cac51b9 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -388,6 +388,7 @@ L.Map.Keyboard = L.Handler.extend({
 				return true;
 			case 112: // f1
 				this._map._socket.sendMessage('uno .uno:NoteVisible');
+				return true;
 			case 188: // ,
 				this._map._socket.sendMessage('uno .uno:SubScript');
 				return true;


More information about the Libreoffice-commits mailing list