Don't trigger hover events on nonentities

This commit is contained in:
John Firebaugh
2013-06-17 15:43:51 -07:00
parent 4bdf66c33a
commit 2722294cec
+1 -1
View File
@@ -44,7 +44,7 @@ iD.behavior.Hover = function(context) {
selection.selectAll('.hover-suppressed')
.classed('hover-suppressed', false);
if (target && target.type) {
if (target instanceof iD.Entity) {
var selector = '.' + target.id;
if (target.type === 'relation') {