Use the new Sizzle matches functionality.

This commit is contained in:
jeresig 2010-10-10 15:14:23 -04:00
parent 1f7bbd8939
commit eb67d99416

View file

@ -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;