How to tell jQuery that all selectors I write should be limited to the object being worked on?
<p>I made this incredible plugin that will change the fate of the world <a href="http://jsfiddle.net/4phfC/1/" rel="nofollow">http://jsfiddle.net/4phfC/1/</a>:</p>

<pre><code>&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"&gt;&lt;/script&gt;

&lt;script&gt;    

$.fn.colorText = function(color) {

    $('.bar', $(this)).css('color', color);

    // a million other lines of code here...

}

$(function() {

    $("#div1").colorText("red");

});

&lt;/script&gt;

&lt;div id="div1" class="foo" style="width:100px;height:100px;border:1px solid green"&gt;
    &lt;span class="bar"&gt;Hello&lt;/span&gt;
&lt;/div&gt;

&lt;div id="div2" class="foo" style="width:100px;height:100px;border:1px solid green"&gt;
    &lt;span class="bar"&gt;Good Bye&lt;/span&gt;
&lt;/div&gt;
</code></pre>

<p>In order to effect just the span tag with the class "bar" that is within the object that I attached the plugin to and not the other one on the page I did:</p>

<pre><code>$('.bar', $(this)).whatever();
</code></pre>

<p>But notice the spot where the million other lines of code will go, it would be somehwat of a pain to use this convention throughout the rest of the plugin.</p>

<p>Is there any way to tell jQuery from now on all selectors I declare are applicable only to the element that the plugin is attached, so that I can use selectors like normal:</p>

<pre><code>$('.bar').whatever();
</code></pre>

<p>and this won't affect any ".bar"'s that are outside of the element being worked on.</p>
