[Libreoffice-commits] online.git: loleaflet/src
Mihai Varga
mihai.varga at collabora.com
Mon Sep 7 07:21:23 PDT 2015
loleaflet/src/layer/tile/GridLayer.js | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 241d38dd02b5f285df4ab1cd91eeb403ffe1bb36
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Mon Sep 7 11:38:49 2015 +0300
lolealfet: don't prefetch if map is undefined
This happens when the map is removed and some hooks still remain
diff --git a/loleaflet/src/layer/tile/GridLayer.js b/loleaflet/src/layer/tile/GridLayer.js
index 7df84b5..30cdcb9 100644
--- a/loleaflet/src/layer/tile/GridLayer.js
+++ b/loleaflet/src/layer/tile/GridLayer.js
@@ -901,6 +901,9 @@ L.GridLayer = L.Layer.extend({
},
_resetPreFetching: function (resetBorder) {
+ if (!this._map) {
+ return;
+ }
clearInterval(this._tilesPreFetcher);
clearTimeout(this._preFetchIdle);
if (resetBorder) {
More information about the Libreoffice-commits
mailing list