examples: |
jt_.addListener(window, "load", function() { jt_.Trace.on(); jt_.TraceObj.show(document.body); }); jt_.TraceObj.show(document.getElementById("anyId")); var obj = {x:25, y:100, atDiv:document.getElementById("anyId")}; jt_.TraceObj.show(obj); jt_.Trace.msg("anyId=" + jt_TraceObj.str(obj)); |
description: |
Began as simple 'objToString()' function, now a method called 'jt_.TraceObj.str()', was used frequently as 'jt_.Trace.msg(objToString())', evolved to 'jt_.TraceObj.show()', an object/DOM inspector tool with links to explore related objects, DOM nodes, 'childNodes', etc. 130 lines of code, 4.7 KB, requires 'jt_.Trace' |
main methods: |
show: function(obj) // full object/DOM inspector tool str: function(obj) // returns 'obj' as 'name:value' pairs |