05.11.2010, 20:32
(05.11.2010, 11:36)routeconverter Wrote: It seems this JavaScript from contextmenucontrol.js produces them:I don't see a bug either, but it's not the insert only. I also did a right-click "zoom in" and a right-click "center". These are also executed 3 times.
GEvent.addDomListener(entry, "click", function () {
if (arg == "insert") {
me.insertPosition_();
ContextMenuControl.prototype.insertPosition_ = function () {
var me = this;
var point = me.clickedPoint_;
callJava("insert-position/" + point.lat() + "/" + point.lng());
};
I don't see a bug there... you? Are you able to debug this?
Could it be that it's not the contextmenucontrol.js as such but that "something" offers the action 3 times to this contextmenucontrol.js?
I don't know if I can debug this but I'll see what I can do.