From 7582a795ee0948b4b0b22fb64b40d9ddaeba2b4a Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 4 Jun 2012 13:49:39 +0200 Subject: [PATCH] use new Ox.wordwrap signature --- source/Ox.UI/js/List/IconItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/List/IconItem.js b/source/Ox.UI/js/List/IconItem.js index cb930c55..c72b652e 100644 --- a/source/Ox.UI/js/List/IconItem.js +++ b/source/Ox.UI/js/List/IconItem.js @@ -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) {