mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-29 01:42:03 +00:00
Some more clean-up
This commit is contained in:
1 parent
4af27541d0
commit
327debe3a8
1 file changed
+11
-14
+11
-14
@@ -532,23 +532,20 @@ CPLog(@"Got some class: %@", inst);
|
||||
|
||||
function CPDescriptionOfObject(anObject)
|
||||
{
|
||||
var desc = "";
|
||||
|
||||
if (anObject.isa)
|
||||
desc = [anObject description];
|
||||
else if (typeof(anObject) !== "object")
|
||||
desc = String(anObject);
|
||||
else
|
||||
return [anObject description];
|
||||
|
||||
if (typeof(anObject) !== "object")
|
||||
return String(anObject);
|
||||
|
||||
desc = "JSObject\n{\n";
|
||||
|
||||
for (var property in anObject)
|
||||
{
|
||||
desc = "JSObject\n{\n";
|
||||
|
||||
for (var property in anObject)
|
||||
{
|
||||
if (anObject.hasOwnProperty(property))
|
||||
desc += " " + property + ":" + CPDescriptionOfObject(anObject[property]) + "\n";
|
||||
}
|
||||
desc += "}";
|
||||
if (anObject.hasOwnProperty(property))
|
||||
desc += " " + property + ":" + CPDescriptionOfObject(anObject[property]) + "\n";
|
||||
}
|
||||
desc += "}";
|
||||
|
||||
return desc.split('\n').join("\n\t");
|
||||
}
|
||||
Reference in new issue
Block a user