jQuery: why does my live() handler declaration error out when the analogous click() one doesn't?
<p>I have the following in a javascript file (using jQuery as well):</p>

<pre><code>$(function(){
    $('#mybutton').live('click',myObject.someMethod);
});

var myObject = { 
    someMethod: function() { //do stuff }
};
</code></pre>

<p>I get a js error on pageload that says "myObject isn't defined". However, when I change the event handler in the <code>doc.ready</code> function to:</p>

<pre><code>$('#mybutton').live('click', function(){ myObject.someMethod(); });
</code></pre>

<p>it works! I have code structured like the first example all over my codebase that works. W T F?? </p>
