call the requestFinished hook in the new request handling code - for plugins that need it

also make a request to hook something that doesn't exist a non-fatal error - to reduce plugin breakage for removed hooks
This commit is contained in:
Jon Atkins
2013-08-29 06:36:48 +01:00
parent c1b338d86b
commit ffd0258a7c
2 changed files with 12 additions and 2 deletions

View File

@ -368,6 +368,9 @@ window.MapDataRequest.prototype.handleResponse = function (data, tiles, success)
var id = tiles[i];
this.requeueTile(id, true);
}
window.runHooks('requestFinished', {success: false});
} else {
// TODO: use result.minLevelOfDetail ??? stock site doesn't use it yet...
@ -407,6 +410,8 @@ window.MapDataRequest.prototype.handleResponse = function (data, tiles, success)
}
}
window.runHooks('requestFinished', {success: true});
}
this.processRequestQueue();