code: function truncateTextContent($element, $rootNode, $clipNode, options) { // jshint ignore:line
      if (options.position === "end") {
        return truncateTextEnd($element, $rootNode, $clipNode, options);
      }
      else if (options.position === "start") {
        return truncateTextStart($element, $rootNode, $clipNode, options);
      }
      else {
        return truncateTextMiddle($element, $rootNode, $clipNode, options);
      }
    }
docs: /* Truncates the text content of a node using binary search.
  If no valid truncation point is found, attempt to truncate its nearest sibling.
  
  $textNode - The jQuery node to truncate.
  $rootNode - The jQuery root node to measure the truncated height.
  $clipNode - The jQuery node to insert right after the truncation point.
  options   - An object containing:
  ellipsis  - The ellipsis string to append at the end of the truncation.
  maxHeight - The maximum height for the root node (in px).
  position  - The position of the truncation ("start", "middle", "end").
  
  Returns true if truncation happened, false otherwise.