[Libreoffice-commits] online.git: loleaflet/js
Henry Castro
hcastro at collabora.com
Sun May 20 16:42:17 UTC 2018
loleaflet/js/main.js | 3 ---
1 file changed, 3 deletions(-)
New commits:
commit f364c4a60414348c95514d5efc4bdf9845b739b8
Author: Henry Castro <hcastro at collabora.com>
Date: Sun May 20 12:40:25 2018 -0400
loleaflet: finally, remove "map" global variable
Change-Id: I70c2603189e2194b8c9b60f2709f89c7fdf8cbfd
diff --git a/loleaflet/js/main.js b/loleaflet/js/main.js
index 89d99263c..1d0047c3e 100644
--- a/loleaflet/js/main.js
+++ b/loleaflet/js/main.js
@@ -61,9 +61,6 @@ var map = L.map('map', {
idleTimeoutSecs: idleTimeoutSecs, // Dim when user is idle.
outOfFocusTimeoutSecs: outOfFocusTimeoutSecs // Dim after switching tabs.
});
-// toolbar.js (loaded in <script> tag accesses map as global variable,
-// so expose it
-global.map = map;
////// Controls /////
map.addControl(L.control.menubar());
More information about the Libreoffice-commits
mailing list