external modules for behavior

This commit is contained in:
Kushan Joshi
2016-06-18 15:29:16 +05:30
parent f42736fb6c
commit 0939983515
16 changed files with 4707 additions and 65 deletions
+2 -1
View File
@@ -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') {