Improve Javascript API Documenation With Dojo Examples

Idea created by sharkins on Apr 27, 2010
    New
    Score200
    If the Javascript API is going to be based on Dojo, the code examples presented should take advantage of and illustrate effective patterns used by the Dojo community.  For example, in the QueryTask documentation located at

    http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jshelp/intro_querytask.htm,

    why not use the Dojo.forEach language extension for arrays rather than the traditional
    for (var i=0, il=resultFeatures.length; i<il; i++
    
    This introduces users to Dojo concepts and supports correct framework usage as many
    copy and paste from these examples.