calling object method in jquery each loop - scope issue?
<pre><code>My.Awesome.Obj = function() {
    return {
        // PUBLIC PROPERTIES
        legendObj:  null,

        // PUBLIC METHODS
        init: function() {
            this.assignLegendClick();
        },

        assignLegendClick: function() {
            console.log('*** drawLegend()');
            var checkboxes = this.legendObj.find("input");
            checkboxes.each(function() {
                $(this).click(function() {
                    this.handleLegendClick();
                });
            })
        },

        handleLegendClick: function() {
            console.log('*** handleLegendClick()');
        },

        EOF: null
    };
}();
</code></pre>

<p>So I'm getting an error saying </p>

<blockquote>
  <p>handleLegendClick is not defined</p>
</blockquote>

<p>I'm assuming this is a scope issue, but I'm not sure how to refer back to the parent object within the loop...</p>
