fix a formatting bug in icon list items

This commit is contained in:
rlx 2011-09-17 18:24:42 +00:00
parent d3d2829464
commit 7398b1ec14

View file

@ -135,7 +135,7 @@ Ox.IconItem = function(options, self) {
function formatText(text, maxLines, maxLength) {
var lines = Ox.wordwrap(text, maxLength, '<br/>', true, false).split('<br/>');
return lines.map(function(line, i) {
return Ox.map(lines, function(line, i) {
if (i < maxLines - 1) {
return line;
} else if (i == maxLines - 1) {