From eb67d9941694d39a592228bc6da71def3e619b94 Mon Sep 17 00:00:00 2001 From: jeresig Date: Sun, 10 Oct 2010 15:14:23 -0400 Subject: [PATCH] Use the new Sizzle matches functionality. --- src/traversing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/traversing.js b/src/traversing.js index cfb344b..df43178 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -106,7 +106,7 @@ jQuery.fn.extend({ var cur = this[i]; while ( cur ) { - if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { + if ( pos ? pos.index(cur) > -1 : jQuery.find.matches(selectors, cur) ) { ret.push( cur ); break; -- 1.7.10.4