Skip to content

Commit

Permalink
Fix of this._markers in undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed May 22, 2019
1 parent 062744c commit a99a16a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugin/leaflet.canvas-markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ function layerFactory(L) {
return this;
},
_onClick: function (e) {
if (!this._markers) { return; }

var self = this;
var point = e.containerPoint;

Expand Down

0 comments on commit a99a16a

Please sign in to comment.