fix: adds a hasOwnProperty check, uses "let".

pull/1740/head
Boris Grozev 8 years ago
parent b09613b943
commit 4840db67ca
  1. 7
      modules/analytics/analytics.js

@ -125,8 +125,11 @@ class Analytics {
// optionally include local deployment information based on
// the contents of window.config.deploymentInfo
if (config.deploymentInfo) {
for (var key in config.deploymentInfo) {
permanentProperties[key] = config.deploymentInfo[key];
for (let key in config.deploymentInfo) {
if (config.deploymentInfo.hasOwnProperty(key)) {
permanentProperties[key]
= config.deploymentInfo[key];
}
}
}

Loading…
Cancel
Save