diff --git a/index.html b/index.html index a82088e73..33e35170d 100755 --- a/index.html +++ b/index.html @@ -25,6 +25,7 @@ + diff --git a/js/iD/Entity.js b/js/iD/Entity.js index 8906026b6..230929d90 100755 --- a/js/iD/Entity.js +++ b/js/iD/Entity.js @@ -3,7 +3,6 @@ if (typeof iD === 'undefined') iD = {}; iD._id = 0; iD.Entity = function() { - this.tags = {}; this.parents = {}; // The ID locally this._id = iD._id++; @@ -14,7 +13,6 @@ iD.Entity = function() { this.entityType = ''; this.modified = false; this.deleted = false; - this.MAINKEYS = ['highway','amenity','railway','waterway']; }; iD.Entity.prototype = { @@ -42,28 +40,7 @@ iD.Entity.prototype = { return !this.deleted; // Boolean }, - // ------------- - // Tag functions - numTags:function() { - // summary: Count how many tags this entity has. - return Object.keys(this.tags).length; - }, - friendlyName:function() { - // summary: Rough-and-ready function to return a human-friendly name - // for the object. Really just a placeholder for something better. - // returns: A string such as 'river' or 'Fred's House'. - if (this.numTags()===0) { return ''; } - var n=[]; - if (this.tags.name) { n.push(this.tags.name); } - if (this.tags.ref) { n.push(this.tags.ref); } - if (n.length===0) { - for (var i=0; i"; this.editortooltip = new dijit.TooltipDialog({ content: h+" " + diff --git a/js/iD/renderer/Map.js b/js/iD/renderer/Map.js index 25332aef4..af02e9c94 100755 --- a/js/iD/renderer/Map.js +++ b/js/iD/renderer/Map.js @@ -194,9 +194,9 @@ declare("iD.renderer.Map", null, { getUI:function(entity) { // summary: Return the UI for an entity, if it exists. - if (entity.nodeType === 'node') { + if (entity.entityType === 'node') { return this.nodeuis[entity.id]; // iD.renderer.EntityUI - } else if (entity.nodeType === 'way') { + } else if (entity.entityType === 'way') { return this.wayuis[entity.id]; // iD.renderer.EntityUI } return null;