mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-07 01:18:02 +00:00
Better descriptions for CPArray.
Reviewed by me.
This commit is contained in:
1 parent
1db2e0282a
commit
4fbc140551
1 file changed
+8
-5
@@ -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 + ')';
|
||||
|
||||
Reference in new issue
Block a user