Skip to content

Commit

Permalink
fixup! fixup! temporary fix for events handling
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoe committed May 3, 2019
1 parent a02525e commit 062744c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin/leaflet.canvas-markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ function layerFactory(L) {
if (!self._userEvents)
self._userEvents = {};
L.Util.splitWords(types).forEach(function (type) {
if (internal.indexOf(event) === -1) {
if (internal.indexOf(type) === -1) {
L.Evented.prototype._on.call(self, type, fn, context);
} else {
self._userEvents[e] = fn;
self._userEvents[type] = fn;
}
});
return this;
Expand Down

0 comments on commit 062744c

Please sign in to comment.