whyvez

FeatureLayer click event handler event object not as expected.

Discussion created by whyvez on Nov 28, 2013
Latest reply on Dec 2, 2013 by JGravois-esristaff
I am binding a simple click handler to a FeatureLayer using the new 'on' strategy. All works fine in all browser except latest Firefox (25.0.1). The event object returned to the handler only has the ClientX & ClientY properties. To make things even more confusing looking at the esri docs here: https://developers.arcgis.com/en/javascript/jsapi/featurelayer-amd.html#click says that the handler should not expect a event object which contradicts the docs for the connect style handlers: https://developers.arcgis.com/en/javascript/jsapi/featurelayer-amd.html#onclick

1. how can i get around the Firefox issue?
2. Can you explain this discrepancy in the docs?

Regards, Yves

p.s. using esri js sdk ver 3.7

[ATTACH=CONFIG]29446[/ATTACH]

Outcomes