public/javascripts/codemirror/js/select.js
function topLevelNodeBefore(node, top) {
    while (!node.previousSibling && node.parentNode != top)
      node = node.parentNode;
    return topLevelNodeAt(node.previousSibling, top);
  }
function topLevelNodeBefore(node, top) {
    while (!node.previousSibling && node.parentNode != top)
      node = node.parentNode;
    return topLevelNodeAt(node.previousSibling, top);
  }
function topLevelNodeBefore ( node , top ) { while ( ! node . previousSibling && node . parentNode != top ) node = node . parentNode ; return topLevelNodeAt ( node . previousSibling , top ) ; }
Find the top-level node that contains the node before this one.
Find the top - level node that contains the node before this one .