How can I access a function name from inside that function?
// parasitic inheritance var ns.parent.child = function() { var parent = new ns.parent(); p
look here: http://www.tek-tips.com/viewthread.cfm?qid=1209619
arguments.callee.toString();
seems to be right for your needs.