jQuery access parent object attribute?
<p>So I have this code:</p>

<pre><code>function theObject(){
    this.someelement = $("#someelement");
    this.someotherelement = $("someotherelement");
    this.someelement.fadeOut(500, function(){
       this.someotherelement.attr("title", "something");
       this.someelement.fadeIn(500); 
    });
}
</code></pre>

<p>for some reason <code>this.someotherelement</code> is undefined. I'm guessing because it's wrapped in a <code>function(){}</code>?</p>
