code: function Truncate(element, options) {
      this.element = element;
      this.$element = $(element);
  
      this._name = 'truncate';
      this._defaults = {
        lines: 1,
        ellipsis: '…',
        showMore: '',
        showLess: '',
        position: 'end',
        lineHeight: 'auto'
      };
  
      this.config(options);
  
      this.original = this.cached = element.innerHTML;
  
      this.isTruncated = false; // True if the original content overflows the container.
      this.isCollapsed = true;  // True if the container is currently collapsed.
  
      this.update();
    }
docs: /* Public: Creates an instance of Truncate.
  
  element - A DOM element to be truncated.
  options - An Object literal containing setup options.
  
  Examples:
  
  var element = document.createElement('span');
  element.innerHTML = 'This is<br>odd.';
  var truncated = new Truncate(element, {
  lines: 1,
  lineHeight: 16,
  ellipsis: '… ',
  showMore: '<a class="show-more">Show More</a>',
  showLess: '<a class="show-less">Show Less</a>',
  position: "start"
  });
  
  // Update HTML
  truncated.update('This is not very odd.');
  
  // Undo truncation
  truncated.expand();
  
  // Redo truncation
  truncated.collapse();
  
  // Update options
  truncated.config({ lines : 3 });