btfou

API Reference Error

Discussion created by btfou on Jan 27, 2014
Latest reply on Feb 7, 2014 by JUihlein-esristaff
Happened to be looking at esri/graphic and noticed that on 'graphic-add' says it returns the graphic object, when it returns an object consisting of the graphic and target (the layer).

I know you guys have a lot going on, but keeping the reference up-to-date and correct seems critical. Since the switch to AMD, I don't trust the reference for event returns and just test returns myself in console when I work with new events. This isn't the only one that didn't get updated during the 'on' switch.

As always, thanks for your consideration.

Outcomes