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

Henry Castro hcastro at collabora.com
Sun May 20 15:58:03 UTC 2018


 loleaflet/src/map/handler/Map.Keyboard.js |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 5cd2e2369fe7ea17fcd260734f6cfc9ecc700893
Author: Henry Castro <hcastro at collabora.com>
Date:   Sun May 20 11:56:15 2018 -0400

    loleaflet: avoid unnecessary "map" global variable in Map.Keyboard.js
    
    Change-Id: I2e566157d468699e901c24ad0c23de501297bf2c

diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index 42d264ce7..9fe846711 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -2,8 +2,6 @@
  * L.Map.Keyboard is handling keyboard interaction with the map, enabled by default.
  */
 
-/* global map */
-
 L.Map.mergeOptions({
 	keyboard: true,
 	keyboardPanOffset: 20,
@@ -451,7 +449,7 @@ L.Map.Keyboard = L.Handler.extend({
 		}
 
 		if (e.originalEvent.ctrlKey && e.originalEvent.shiftKey && e.originalEvent.key === '?') {
-			map.showLOKeyboardHelp();
+			this._map.showLOKeyboardHelp();
 			e.originalEvent.preventDefault();
 			return true;
 		}


More information about the Libreoffice-commits mailing list