public/javascripts/codemirror/js/undo.js
function(node) {
    if (node) {
      if (!node.historyTouched) {
        this.touched.push(node);
        node.historyTouched = true;
      }
    }
    else {
      this.firstTouched = true;
    }
  }
function(node) {
    if (node) {
      if (!node.historyTouched) {
        this.touched.push(node);
        node.historyTouched = true;
      }
    }
    else {
      this.firstTouched = true;
    }
  }
function ( node ) { if ( node ) { if ( ! node . historyTouched ) { this . touched . push ( node ) ; node . historyTouched = true ; } } else { this . firstTouched = true ; } }
Mark a node as touched if it has not already been marked.
Mark a node as touched if it has not already been marked .