Commit f2bb86cf authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Add file where debugging stuff can go.

parent 79d2034c
debugObject = function (obj) {
// gives a nice, stable string representation for objects,
// ignoring any methods
var keyValuePairs = [];
for (var k in obj) {
var v = obj[k];
if (typeof(v) != 'function') {
keyValuePairs.push([k, v]);
}
};
keyValuePairs.sort(compare);
log( "{" + map(
function (pair) {
return map(repr, pair).join(":");
},
keyValuePairs
).join(", ") + "}");
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment