       
       # Set up hover events for groups and phenotypes
       associated_targets = ->
-        targets = $(this)
+        targets = $(@)
         associated_groups = targets.data 'associated'
         if associated_groups
           targets = targets.add($("##{group}")) for group in associated_groups

  create_spacetree: (jit_options) ->
    $('#tree_empty_state').hide()
    
    @root_node ||= @options.tree_node_class.create_root this
    
    jit_default_options =
      injectInto: @container_id

    root_node = @find_node(root_taxon_id) || @root_node
    matches = matches.sortBy (m) -> m.name
    for match in matches
      node = root_node.find_or_create_child @, match.taxon_id, match.name, greatest_profile_match: match.greatest_profile_match
      if match.matches?
        match.matches = match.matches.sortBy (m) -> m.name
        for match_child in match.matches
          node.find_or_create_child @, match_child.taxon_id, match_child.name, greatest_profile_match: match_child.greatest_profile_match
    
    empty_resultset = (matches.length == 0)
    super root_node, empty_resultset
