improve return values in tile manager reportProgress callback

closes #114
This commit is contained in:
Javier Abadia 2014-02-27 23:21:38 +01:00
parent 2cc6db9e05
commit 76fd8e9270
2 changed files with 3 additions and 1 deletions

View File

@ -396,7 +396,7 @@ define([
error = { cell:cell, msg:error};
}
var cancelRequested = reportProgress({countNow:i, countMax:cells.length, error: error, finishedDownloading:false});
var cancelRequested = reportProgress({countNow:i, countMax:cells.length, cell: cell, error: error, finishedDownloading:false});
if( cancelRequested || i==cells.length-1 )
reportProgress({ finishedDownloading: true, cancelRequested: cancelRequested})

View File

@ -593,6 +593,8 @@ require(["esri/map",
function reportProgress(progress)
{
console.log(progress);
if( progress.finishedDownloading )
{
if( progress.cancelRequested )