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

727
1
04-02-2013 08:52 AM
LucasScharenbroich
Occasional Contributor
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.
0 Kudos
1 Reply
derekswingley1
Frequent Contributor
It's an error in the documentation, you should be using esri/tasks/query (lowercase "q"). We'll get this fixed next time we update the docs (should be in the next couple of days, if not sooner).
0 Kudos