From 67a194f35f87f7b02536b56d980d2888148f7c8b Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Sun, 26 May 2013 21:30:36 -0700 Subject: [PATCH] Fix taginfo caching --- js/id/services/taginfo.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/id/services/taginfo.js b/js/id/services/taginfo.js index b950952eb..2c5fda700 100644 --- a/js/id/services/taginfo.js +++ b/js/id/services/taginfo.js @@ -14,7 +14,11 @@ iD.taginfo = function() { line: 'ways' }; - var cache = this.cache = {}; + if (!iD.taginfo.cache) { + iD.taginfo.cache = {}; + } + + var cache = iD.taginfo.cache; function sets(parameters, n, o) { if (parameters.geometry && o[parameters.geometry]) {