mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Use the new Sizzle matches functionality.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user