[Libreoffice-commits] online.git: Branch 'libreoffice-5-4' - loleaflet/src

Henry Castro hcastro at collabora.com
Wed Jan 31 16:41:58 UTC 2018


 loleaflet/src/map/Map.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 53fa04ad212881f3dc350af89928fd3ce5b483fa
Author: Henry Castro <hcastro at collabora.com>
Date:   Thu Sep 14 17:36:45 2017 -0400

    loleaflet: ignore events before the document is loaded
    
    Change-Id: Icd28854f4430786e1383a7fe6a694f3c7ce9a188
    (cherry picked from commit 105eeddae1f058572cf3b6d13edb5ec7ee61473f)
    Reviewed-on: https://gerrit.libreoffice.org/49010
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index c13a2083..83e855ba 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -983,7 +983,7 @@ L.Map = L.Evented.extend({
 	},
 
 	_handleDOMEvent: function (e) {
-		if (!this._loaded || !this._enabled || L.DomEvent._skipped(e)) { return; }
+		if (!this._docLayer || !this._loaded || !this._enabled || L.DomEvent._skipped(e)) { return; }
 
 		this.lastActiveTime = Date.now();
 


More information about the Libreoffice-commits mailing list