From: jeresig Date: Sun, 10 Oct 2010 19:14:23 +0000 (-0400) Subject: Use the new Sizzle matches functionality. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=eb67d9941694d39a592228bc6da71def3e619b94 Use the new Sizzle matches functionality. --- 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;