mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 09:34:04 +02:00
external modules for behavior
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { Entity } from '../core/index';
|
||||
/*
|
||||
The hover behavior adds the `.hover` class on mouseover to all elements to which
|
||||
the identical datum is bound, and removes it on mouseout.
|
||||
@@ -44,7 +45,7 @@ export function Hover() {
|
||||
selection.selectAll('.hover-suppressed')
|
||||
.classed('hover-suppressed', false);
|
||||
|
||||
if (target instanceof iD.Entity) {
|
||||
if (target instanceof Entity) {
|
||||
var selector = '.' + target.id;
|
||||
|
||||
if (target.type === 'relation') {
|
||||
|
||||
Reference in New Issue
Block a user