Better descriptions for CPArray.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2009-12-07 18:54:01 -08:00
1 parent 1db2e0282a
commit 4fbc140551
1 file changed
+8 -5
+8 -5
View File
@@ -816,15 +816,18 @@
for(; index < count; ++index)
{
var object = self[index];
if (index === 0)
description += '\n';
if (object && object.isa)
description += [object description];
else
description += object;
var object = self[index],
objectDescription = object && object.isa ? [object description] : object + "";
description += "\t" + objectDescription.split('\n').join("\n\t");
if (index !== count - 1)
description += ", ";
description += '\n';
}
return description + ')';