var map = new esri.Map("map");
var app = {}; // This is an empty object, equivalient to window.app app.map = new esri.Map("map"); // map is now bound to window.app.map
In the print widjet example, all the application specific values are now in window.app (map, printer, symbols, toolbar).It's a method of organizing the code in the application.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.