   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.

      return attrList[node][variable]

  null

module.exports = (vars, node, variable, depth) ->


      return node[variable]

    # Checks if the variable has already been fetched.
    if "d3plus" of node and
       "data" of node.d3plus and
       variable of node.d3plus.data
      return node.d3plus.data[variable]

    node = node[depth]
