(entity: iD.OsmEntity)
| 269 | } |
| 270 | |
| 271 | replace(entity: iD.OsmEntity) { |
| 272 | if (this.entities[entity.id] === entity) return this; |
| 273 | |
| 274 | return this.update(function() { |
| 275 | this._updateCalculated(this.entities[entity.id], entity); |
| 276 | this.entities[entity.id] = entity; |
| 277 | }); |
| 278 | } |
| 279 | |
| 280 | remove(entity: iD.OsmEntity) { |
| 281 | return this.update(function() { |
no test coverage detected