use new Ox.wordwrap signature
This commit is contained in:
parent
6116f4b7f1
commit
7582a795ee
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ Ox.IconItem = function(options, self) {
|
|||
|
||||
function formatText(text, maxLines, maxLength) {
|
||||
text = Ox.isArray(text) ? text.join(', ') : text;
|
||||
var lines = Ox.wordwrap(text, maxLength, '\n', true, false).split('\n');
|
||||
var lines = Ox.wordwrap(text, maxLength, true).split('\n');
|
||||
// if the text has too many lines, replace the last line with the
|
||||
// truncated rest (including the last line) and discard all extra lines
|
||||
if (lines.length > maxLines) {
|
||||
|
|
Loading…
Reference in a new issue