Commit eb67d994 authored by jeresig's avatar jeresig

Use the new Sizzle matches functionality.

parent 1f7bbd89
...@@ -106,7 +106,7 @@ jQuery.fn.extend({ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment