var map; var clickCount = 0; require([ "esri/map", "dojo/domReady!"], function (Map) { map = new Map("divMap", { basemap: "topo", center: [-89.5, 40], zoom: 6 }); map.on("click", function(evt){ console.log("Clicked" + (++clickCount)); }); });
Solved! Go to Solution.
I also started seeing this behavior over the last couple of weeks when using Chrome (41.0.2272.76). The problem does not exist when I use IE (11.0.9600.17498). It does appear to be related to my workstation though. We tried it on another machine here at the office that is very similar and it did NOT exhibit the double events when using the same Chrome version.
When I found that the issue was my machine. I didn't pursue the matter much further. I tested today and found that Chrome (40.0.2214.111 m) and Opera (27.0.1689.76) gave me extra click events, while FireFox(36.0.1) and Internet Explorer (11.0.9600.17633) didn't. The mystery lingers on.