"This" outside of each scope (JQuery)
<p><strong>I'm trying to get rid of that nasty variable declaration of ref in this instance</strong>, I'm sure there is a way to get out of the each scope to get the "this" of the on-call. I just have no idea how to.</p>

<pre><code>$(document).on('click', '.item', function(){

    var ref = $(this).attr('data-id');

    $.each(t, function(){
        if(this.id == ref){
            //action
            return false;
        }
    });
}
</code></pre>

<p>This isn't really life or death, I just am trying to clean up code.</p>
