 
   showFlowsOf = (bbl) ->
     flows = svg.selectAll("g.flows")
-    d = d3.select(bbl).datum() #data()?[0]
+    d = d3.select(bbl).datum()
+
     ###
     ffwscale = d3.scale.linear()
       .range([0, rscale.range()[1]/2])

    update()


    clearNodeSelection = ->
      if selectedNode != null
        d3.select(selectedNode).selectAll("circle").classed("selected", false)
        flows.selectAll("line").remove()
        selectedNode = null

    $(document).keyup (e) -> if e.keyCode == 27 then clearNodeSelection()

    $('g.bubble').tipsy
      gravity: 'w'
      html: true
      opacity: 0.9
      trigger: "manual"
      title: ->
        bubbleTooltip(d3.select(this).data()[0])


    ###

        $(this).tipsy("hide")
        tseriesPanel.remove("flow" + i)

    $('g.flows line').tipsy
      gravity: 'w'
      opacity: 0.9
      html: true
      trigger: "manual"
      title: -> flowTooltip(d3.select(this).datum())






