   depth      = vars.id.value unless depth
   nodeObject = validObject node
 
-  # Filters a given array of data based on the current node ID.
-  filterArray = (arr) ->
-    if node instanceof Array
-      arr.filter (d) -> node.indexOf(d[depth]) >= 0
-    else
-      arr.filter (d) -> d[depth] is node
-
   # Checks inside the "node" variable if it is an object. If the variable is not
   # avaiable inside of the object, "node" gets reset to it's ID value to help
   # searching through the data and attributes lists.

  else
    val = fetch vars, node, variable, depth

  if (nodeObject and typeof variable is "string" and
      variable not of node and "d3plus" of node)
    node.d3plus.data = {} unless "data" of node.d3plus
    node.d3plus.data[variable] = val


      attrList = vars.attrs.value

    if attrList instanceof Array
      val = uniqueValues filterArray(attrList, node, depth), variable
      return val if val.length
    else if node instanceof Array
      attrList = [attrList[n] for n in node if n of attrList]
