Derek, may I ask the reason for the recommendation to use object.on instead of on(object, ..)? Is that because object.on will register the event handler at the object scope, while on(object, ...) will register at the global level?
Can any ESRI staff answer the question? In what scope the JS API is compatible with dojo/on? Does ESRI have a timeline to fully support dojo/on and other dojo 1.8 features? It is annoying to mix using dojo.connect and dojo/on in the same application.
aspect.after(this.map, "onLayerAddResult", lang.hitch(this, function (layer, error) { }));
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.