umd/fieldstack.js
/**
 * Get the key from the node's nearest offset-aware ancestor.
 */
Get the key from the node's nearest offset-aware ancestor.
Get the key from the node ' s nearest offset - aware ancestor .
function findAncestorOffsetKey(node) {
  var searchNode = node;
  while (searchNode && searchNode !== document.documentElement) {
    var key = getSelectionOffsetKeyForNode_1(searchNode);
    if (key != null) {
      return key;
    }
    searchNode = searchNode.parentNode;
  }
  return null;
}
function findAncestorOffsetKey ( node ) { var searchNode = node ; while ( searchNode && searchNode !== document . documentElement ) { var key = getSelectionOffsetKeyForNode_1 ( searchNode ) ; if ( key != null ) { return key ; } searchNode = searchNode . parentNode ; } return null ; }
Get the key from the node's nearest offset-aware ancestor.
Get the key from the node ' s nearest offset - aware ancestor .