From 2886e0be078f8aee70223c79c18ff589849404cf Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Wed, 1 Jul 2015 11:59:17 +0100 Subject: [PATCH] doh! forgot syntax to delete object properties --- plugins/cache-details-on-map.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cache-details-on-map.user.js b/plugins/cache-details-on-map.user.js index 63a83111..d13ed03e 100644 --- a/plugins/cache-details-on-map.user.js +++ b/plugins/cache-details-on-map.user.js @@ -38,7 +38,7 @@ window.plugin.cachePortalDetailsOnMap.entityInject = function(data) { var ents = []; for (var guid in window.plugin.cachePortalDetailsOnMap.cache) { if (window.plugin.cachePortalDetailsOnMap.cache[guid].loadtime < maxAge) { - window.plugin.cachePortalDetailsOnMap.cache.delete(guid); + delete window.plugin.cachePortalDetailsOnMap.cache[guid]; } else { ents.push(window.plugin.cachePortalDetailsOnMap.cache[guid].ent); }