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];
|
var cur = this[i];
|
||||||
|
|
||||||
while ( cur ) {
|
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 );
|
ret.push( cur );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue