     selectedLinkOpacity = 0.5
     hoverLinkOpacity = 0.9
 
-    node_mouseover: ->
-      klass = $(this).attr('data-id')
-      d3.selectAll(".link")
-        .filter((d) -> !d.connects(klass))
+    node_mouseover: (e) =>
+      @svg.selectAll(".link")
+        .filter((d) -> !d.connects(e.get 'id'))
         .transition()
         .duration(200)
         .style("opacity", unselectedLinkOpacity)

      else
        k = @key
      @node_map = {}
      @node_list = _.map namespace.charts[k].data.nodes, (n) =>
        node = new D3.sankey.Node(n)
        @node_map[n.id] = node
        node
      @link_list = _.map namespace.charts[k].data.links, (l) -> new D3.sankey.Link(l)
      @initialize_defaults()

    # this method is called when we first render the chart. It is called if we


  Link: class extends Backbone.Model
    initialize: =>
      @view = @get 'view'
      @series = @view.series
      @left  = @view.node_map[@get('left')]
      @right = @view.node_map[@get('right')]
