From 7230e2f44a83400ffe0ce5701f8d2dc80e495973 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sun, 27 Oct 2013 16:33:42 +0000 Subject: [PATCH] run the requestFinished callback after updating visibility/render of cached data technically, not a finished request, but makes sense from the point of view of plugins --- code/map_data_request.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/map_data_request.js b/code/map_data_request.js index 84795404..07ee7e32 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -299,6 +299,10 @@ console.log('stale tile '+tile_id+': newest mtime '+lastTimestamp+(lastTimestamp this.setStatus ('loading'); + // technically a request hasn't actually finished - however, displayed portal data has been refreshed + // so as far as plugins are concerned, it should be treated as a finished request + window.runHooks('requestFinished', {success: true}); + console.log ('done request preperation (cleared out-of-bounds and invalid for zoom, and rendered cached data)'); if (Object.keys(this.tileBounds).length > 0) {