From 7398b1ec14666fc65913903cab25f77c555a0aff Mon Sep 17 00:00:00 2001
From: rlx <0x0073@0x2620.org>
Date: Sat, 17 Sep 2011 18:24:42 +0000
Subject: [PATCH] fix a formatting bug in icon list items
---
source/Ox.UI/js/List/Ox.IconItem.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/Ox.UI/js/List/Ox.IconItem.js b/source/Ox.UI/js/List/Ox.IconItem.js
index e6ffa385..496719d3 100644
--- a/source/Ox.UI/js/List/Ox.IconItem.js
+++ b/source/Ox.UI/js/List/Ox.IconItem.js
@@ -135,7 +135,7 @@ Ox.IconItem = function(options, self) {
function formatText(text, maxLines, maxLength) {
var lines = Ox.wordwrap(text, maxLength, '
', true, false).split('
');
- return lines.map(function(line, i) {
+ return Ox.map(lines, function(line, i) {
if (i < maxLines - 1) {
return line;
} else if (i == maxLines - 1) {