Use the new Sizzle matches functionality.

1.7/enhancement_8685
jeresig 2010-10-10 15:14:23 -04:00
parent 1f7bbd8939
commit eb67d99416
1 changed files with 1 additions and 1 deletions

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;