From 24a802a71f23e351ff664db03500fd38937f95bb Mon Sep 17 00:00:00 2001 From: matias pascual Date: Sat, 2 Mar 2019 23:20:42 -0300 Subject: [PATCH] Fix (#69) --- leaflet.textpath.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaflet.textpath.js b/leaflet.textpath.js index 0f22be2..a4b14cc 100755 --- a/leaflet.textpath.js +++ b/leaflet.textpath.js @@ -50,7 +50,7 @@ var PolylineTextPath = { /* If not in SVG mode or Polyline not added to map yet return */ /* setText will be called by onAdd, using value stored in this._text */ - if (!L.Browser.svg || typeof this._map === 'undefined') { + if (!L.Browser.svg || typeof !this._map) { return this; }