You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now if you call line.removeEventListener('click') without manually adding a listener, it will throw an error.
Problem
This seems to be caused by the fact that the this['_leaflet_events'] will only exist if addEventListener is called at least once. removeEventListener however does not check the existence of the property.