lscharen

JSAPI 3.4 has typo in the esri/jsapi define versus AMD docs

Discussion created by lscharen on Apr 2, 2013
Latest reply on Apr 2, 2013 by DSwingley-esristaff
If I load the new 3.4 API from

   http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/

the last line of this file defines the "esri/jsapi" module as

  
define("esri/jsapi", [..., "esri/tasks/query", ...], function () { return {}; });


However, the AMD docs state that the query module should be referenced as "esri/tasks/Query".

   http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/query-amd.html

Since the web server is not case-sensitive, but the dojo loader is, I am getting a "multipleDefine" error from the dojoLoader if I try to reference "esri/tasks/Query" in my own AMD modules.

I can work around the problem by referencing "esri/tasks/query" in all of my code, but this is contrary to the documentation.

Outcomes