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]) {