From 8e92fffa1a824a3cfbc54b879c41b01965a86238 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 23 Jan 2013 10:05:14 -0500 Subject: [PATCH] Freeze loc --- js/id/graph/entity.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/id/graph/entity.js b/js/id/graph/entity.js index 45d0d0c5c..254607a7b 100644 --- a/js/id/graph/entity.js +++ b/js/id/graph/entity.js @@ -50,6 +50,7 @@ iD.Entity.prototype = { Object.freeze(this); Object.freeze(this.tags); + if (this.loc) Object.freeze(this.loc); if (this.nodes) Object.freeze(this.nodes); if (this.members) Object.freeze(this.members); }