Skip to content

Commit 1289845

Browse files
committed
Don't register for nonexistent popup mouse events
1 parent 79eb8e5 commit 1289845

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

inst/htmlwidgets/leaflet.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,9 +927,6 @@ methods.addPopups = function (lat, lng, popup, layerId, group, options) {
927927
var thisId = df.get(i, "layerId");
928928
var thisGroup = df.get(i, "group");
929929
this.layerManager.addLayer(popup, "popup", thisId, thisGroup);
930-
popup.on("click", mouseHandler(this.id, thisId, thisGroup, "popup_click"), this);
931-
popup.on("mouseover", mouseHandler(this.id, thisId, thisGroup, "popup_mouseover"), this);
932-
popup.on("mouseout", mouseHandler(this.id, thisId, thisGroup, "popup_mouseout"), this);
933930
}).call(_this2);
934931
};
935932

javascript/src/methods.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ methods.addPopups = function(lat, lng, popup, layerId, group, options) {
7070
let thisId = df.get(i, "layerId");
7171
let thisGroup = df.get(i, "group");
7272
this.layerManager.addLayer(popup, "popup", thisId, thisGroup);
73-
popup.on("click", mouseHandler(this.id, thisId, thisGroup, "popup_click"), this);
74-
popup.on("mouseover", mouseHandler(this.id, thisId, thisGroup, "popup_mouseover"), this);
75-
popup.on("mouseout", mouseHandler(this.id, thisId, thisGroup, "popup_mouseout"), this);
7673
}).call(this);
7774
}
7875
};
@@ -1035,4 +1032,4 @@ methods.addMeasure = function(options){
10351032
methods.removeMeasure = function() {
10361033
this.measureControl.removeFrom( this );
10371034
delete this.measureControl;
1038-
};
1035+
};

0 commit comments

Comments
 (0)