Skip to content

Commit

Permalink
Uses new edge "source-target" attribute
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
mdcox-sdm committed Jun 30, 2014
1 parent fb85ba3 commit 2b5ccf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/alchemy/core/interactions.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ alchemy.interactions =
return d.id is c.id or alchemy.edges.some (e) ->
return ((e.source.id is c.id and e.target.id is d.id) or
(e.source.id is d.id and e.target.id is c.id)) and
d3.select(".edge[id*='#{d.id}']").classed("active"))
d3.select(".edge[source-target*='#{d.id}']").classed("active"))

if typeof alchemy.conf.nodeClick == 'function'
alchemy.conf.nodeClick(c)
Expand Down

0 comments on commit 2b5ccf2

Please sign in to comment.