Skip to content

Commit

Permalink
The Esri geometryEngine can mess with the geometry passed to it so we…
Browse files Browse the repository at this point in the history
… will clone it first.
  • Loading branch information
tmcgee committed Dec 27, 2016
1 parent 5f79e48 commit 7984458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewer/js/gis/dijit/Identify.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ define([
if (feature && infoTemplate && infoTemplate.info) {
array.forEach(infoTemplate.info.fieldInfos, function (info) {
if (typeof info.formatter === 'function') {
feature.attributes[info.fieldName] = info.formatter(feature.attributes[info.fieldName], feature.attributes, feature.geometry);
feature.attributes[info.fieldName] = info.formatter(feature.attributes[info.fieldName], feature.attributes, lang.clone(feature.geometry));
}
});
}
Expand Down

0 comments on commit 7984458

Please sign in to comment.