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

New commits:
commit 34dcc7c3caffd733e6c19331a4ab9c6eee2c61cc
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Mon Jan 11 16:41:30 2016 +0100

    loleaflet: Don't crash on map.remove() when the underlying DOM is gone.

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 6692485..f7c93c8 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -601,7 +601,7 @@ L.Map = L.Evented.extend({
                        'mouseover mouseout mousemove contextmenu keydown 
keypress keyup trplclick qdrplclick', this._handleDOMEvent, this);
                L.DomEvent[onOff](this._textArea, 'copy paste keydown keypress 
keyup', this._handleDOMEvent, this);
 
-               if (this.options.trackResize) {
+               if (this.options.trackResize && 
this._resizeDetector.contentWindow) {
                        L.DomEvent[onOff](this._resizeDetector.contentWindow, 
'resize', this._onResize, this);
                }
        },
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to