code: function _trimText(text, maxLength) {
    if(text) {
      text = text.toString();
      if(text.length > maxLength) {
        text = text.substr(0, maxLength - 1) + '..';
      }
    }
    return text;
  }
docs: A closure returned by _attachPanZoom to reset/modify pan and zoom values 
  Texts grater than maxLength will be trimmed.
  @param text {String} Text to trim
  @param maxLength {Number}
  @return Trimmed text