jsn

How to add this code into dojo.connect(map, 'onLoad', function (theMap) {

Discussion created by jsn on Jan 11, 2013
Latest reply on Jan 14, 2013 by Schnoerkel
How can I add this code in the  dojo.connect(map, 'onLoad', function (theMap) {  ???



var i=0;
(function () {
    for (; i < 6000000; i++) {
        /*
            Normal processing here
        */

        // Every 100,000 iterations, take a break
        if (i % 100000 == 0) {
            // Manually increment `i` because we break
            i++;
            // Set a timer for the next iteration 
            window.setTimeout(arguments.callee);
            break;
        }
    }
})();

http://stackoverflow.com/questions/4460263/disabling-the-long-running-script-message-in-internet-explorer

Outcomes