   # be selected or deselected. You need to call @_triggerClearSelectEvents
   # from within the conditional so that you appropriately select or de-select
   # the current link and corresponding tree item
-  manageLinkSelect: () ->
+  manageLinkSelect: ->
     if @link.get('strokeColor') == MapLinkView.LINK_COLOR
       @_triggerClearSelectEvents()
       $a.broker.trigger("app:tree_highlight:#{@model.cid}")


  # called from the context menu as well. It clears itself and its nodes as
  # well as the higlighted tree items
  clearSelfandMyNodes: () ->
    @clearSelected()
    beginNode = @model.get("begin").get("node")
    endNode = @model.get("end").get("node")

    @model.set('contextMenu', contextMenu)

  # The following handles the show/hide of links and arrow heads
  hideLink: ->
    @link.setMap(null)

  showLink: ->
    @link.setMap($a.map)

  # in order to remove an element you need to unpublish the events, hide the
