diff --git a/core/code/portal_marker.js b/core/code/portal_marker.js index 589fc6d73..300ddf7a8 100644 --- a/core/code/portal_marker.js +++ b/core/code/portal_marker.js @@ -83,8 +83,9 @@ L.PortalMarker = L.CircleMarker.extend({ // we got more details if (this._details.timestamp == details.timestamp) { + var localThis = this; ["mods", "resonators", "owner", "artifactDetail", "history"].forEach(function (prop) { - if (details[prop]) this._details[prop] = details[prop]; + if (details[prop]) localThis._details[prop] = details[prop]; }); // LEGACY - TO BE REMOVED AT SOME POINT! use .guid, .timestamp and .data instead this._details.ent = details.ent;