 
   # This function triggers the events that make the selected tree and map items
   # to de-selected. Called by other events to help
-  _triggerClearSelectEvents: () ->
+  _triggerClearSelectEvents: ->
     $a.broker.trigger('map:clear_selected') unless $a.SHIFT_DOWN
     $a.broker.trigger('app:tree_remove_highlight') unless $a.SHIFT_DOWN
 
   # This method swaps the icon for the selected color
-  linkSelect: () ->
+  linkSelect: ->
     @link.setOptions(options: { strokeColor: MapLinkView.SELECTED_LINK_COLOR })
 
   # This method swaps the icon for the de-selected color
-  clearSelected: () ->
+  clearSelected: ->
     @link.setOptions(options: { strokeColor: MapLinkView.LINK_COLOR })
 
   # This method is called from the context menu and selects itself and all
   # the links nodes as the higlighted tree items
-  selectSelfandMyNodes: () ->
+  selectSelfandMyNodes: ->
     # First see if everthing should be de-selected; if shift down will not occur
     @_triggerClearSelectEvents()
     @linkSelect()

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