     @model.set('contextMenu', contextMenu)
 
   # The following handles the show/hide of links and arrow heads
-  hideLink: () ->
+  hideLink: ->
     @link.setMap(null)
 
-  showLink: () ->
+  showLink: ->
     @link.setMap($a.map)
 
   # in order to remove an element you need to unpublish the events, hide the


  # 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")

  # a dependency with the ContextMenuView here. There may a better way to do
  # this. I also add the contextMenu itself to the model so the same menu can
  # be added to the tree items for this link
  _contextMenu: ->
    contextMenuOptions = {}
    contextMenuOptions.menuItems = []
    contextMenuOptions.menuItems = $a.Util.copy($a.link_context_menu)
