Does jQuery continue filtering if it finds 0 matches?
<p>I have a question regarding efficiency of jQuery filtering. I've just written quite a lengthy expression and I was wondering if jQuery stops filtering if the current number of matches is 0.</p>

<pre><code>passengers.filter('input.FromDate[value="01/09/2011"]')
          .closest('tr')
          .filter('input.ToDate[value="08/09/2011"]')
          .length;
</code></pre>

<p>If after the first <code>filter()</code> call the number of matches is 0 will jQuery continue to search the DOM or will it forego the additional calls and just return 0?</p>
