mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
Fix potential JS error and some formatting
This commit is contained in:
@@ -156,15 +156,15 @@ export function uiSidebar(context) {
|
||||
var hoverModeSelect = function(datum) {
|
||||
context.container().selectAll('.feature-list-item').classed('hover', false);
|
||||
|
||||
if (context.mode().selectedIDs().length > 1
|
||||
&& (datum instanceof osmEntity)){
|
||||
if (context.selectedIDs().length > 1 &&
|
||||
datum instanceof osmEntity){
|
||||
|
||||
var elements = context.container().selectAll('.feature-list-item')
|
||||
.filter(function (node) {
|
||||
return node.id === datum.id;
|
||||
});
|
||||
});
|
||||
|
||||
if (!elements.empty()){
|
||||
if (!elements.empty()) {
|
||||
elements.classed('hover', true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user