use new Ox.wordwrap signature

This commit is contained in:
rolux 2012-06-04 13:49:39 +02:00
parent 6116f4b7f1
commit 7582a795ee

View file

@ -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) {