       
       # 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

    phenotype_sets.each (group) =>
      group_id = "group-#{hex_md5 JSON.encode group}" # There's no id or any unique identifier; encode the whole group and hash it
      group.group_id = group_id
      node = current_taxon_node.find_or_create_child this, group_id, group_id,
        type: 'group'
        phenotypes: group.phenotypes
        taxa: group.taxa.map (taxon_id) ->

    child
  
  @create_root: (tree) ->
    new @ tree, 'root'


class ProfileTreeNode extends TreeNode
