mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Remove unused
This commit is contained in:
@@ -159,18 +159,5 @@ iD.ui.EntityEditor = function(context) {
|
||||
return entityEditor;
|
||||
};
|
||||
|
||||
entityEditor.close = function() {
|
||||
// Blur focused element so that tag changes are dispatched
|
||||
// See #1295
|
||||
document.activeElement.blur();
|
||||
|
||||
// Firefox incorrectly implements blur, so typeahead elements
|
||||
// are not correctly removed. Remove any stragglers manually.
|
||||
d3.selectAll('div.typeahead').remove();
|
||||
|
||||
context.history()
|
||||
.on('change.entity-editor', null);
|
||||
};
|
||||
|
||||
return d3.rebind(entityEditor, event, 'on');
|
||||
};
|
||||
|
||||
@@ -61,12 +61,6 @@ iD.ui.Inspector = function(context) {
|
||||
}
|
||||
}
|
||||
|
||||
inspector.close = function(selection) {
|
||||
entityEditor.close();
|
||||
|
||||
selection.style('display', 'none');
|
||||
};
|
||||
|
||||
inspector.state = function(_) {
|
||||
if (!arguments.length) return state;
|
||||
state = _;
|
||||
|
||||
Reference in New Issue
Block a user