How do you name a function so that you can introspect it?
<p>I'd like to write a routine that appends the name of a function to #trace whenever it's called:</p>

<pre><code>;(function($, window, undefined) {
    var dom = {};
    var myObject = {};
    myObject.myFunction = {
        trace('myObject.myFunction');
        // function logic goes here
    }

    dom.trace = $('#trace');
    var trace = function(value) {
        dom.trace.append(value + '&lt;br&gt;'));
    }

    $(document).on('click','#Save',myObject.myFunction)
})(jQuery, window);
</code></pre>

<p>In this little proof-of-concept that I've thrown together, I know that I'm probably doing 12 things wrong.</p>

<p>But here's the point of my question:</p>

<p>Q: How do you name a function so that it can be introspected?</p>
