code: function(node) {
      if (node) {
        if (!node.historyTouched) {
          this.touched.push(node);
          node.historyTouched = true;
        }
      }
      else {
        this.firstTouched = true;
      }
    }
docs: Mark a node as touched if it has not already been marked.