Permalink
Browse files

Move dirruns increment to matcher usage

  • Loading branch information...
1 parent 4fc4b92 commit 82c015629610eeea26201e5fc868b423e5cc424e @timmywil committed Jul 26, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 sizzle.js
View
@@ -1202,7 +1202,6 @@ var compile = Sizzle.compile = function( selector, context, xml ) {
// Return a cached group function if already generated (context dependent)
if ( cached && cached.context === context ) {
- cached.dirruns++;
return cached;
}
@@ -1298,7 +1297,7 @@ var select = function( selector, context, results, seed, xml ) {
// If selector is empty, we're already done
if ( selector ) {
matcher = compile( selector, context, xml );
- dirruns = matcher.dirruns;
+ dirruns = matcher.dirruns++;
if ( elements == null ) {
elements = Expr.find["TAG"]( "*", (rsibling.test( selector ) && context.parentNode) || context );

0 comments on commit 82c0156

Please sign in to comment.