devote, еще чуть-чуть.
дальше совершаются операции, о которых ведаете только вы
$.fn.correctLines = function( maxLine, moreText ) {
....
var clone = $( self ).clone( true ).
css( {"height": "auto", "width": self.offsetWidth + "px"} ).html("W");
lineHeight = this.css('line-height');
if ( lineHeight == "normal" ) {
*!*$( document.body ).append( clone );*/!*
*!*lineHeight = clone[0].clientHeight;*/!*
*!*clone.remove();*/!*
} else if ......
var height = lineHeight,
width = self.offsetWidth,
.....
*!*$( document.body ).append( clone.empty() );*/!*
$.fn.correctLines = function( maxLine, moreText ) {
....
var clone = $( self ).clone( true ).
css( {"height": "auto", "width": self.offsetWidth + "px"} ).html("W");
*!*clone.appendTo( document.body );*/!*
lineHeight = this.css('line-height');
if ( lineHeight == "normal" ) {
lineHeight = clone[0].clientHeight;
} else if ......
var height = lineHeight,
width = self.offsetWidth,
.....
*!*clone.empty();*/!*