mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Use the new Sizzle matches functionality.
This commit is contained in:
parent
1f7bbd8939
commit
eb67d99416
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user