| 2341 | }; |
| 2342 | |
| 2343 | var posProcess = function(selector, context){ |
| 2344 | var tmpSet = [], later = "", match, |
| 2345 | root = context.nodeType ? [context] : context; |
| 2346 | |
| 2347 | // Position selectors must be done after the filter |
| 2348 | // And so must :not(positional) so we move all PSEUDOs to the end |
| 2349 | while ( (match = Expr.match.PSEUDO.exec( selector )) ) { |
| 2350 | later += match[0]; |
| 2351 | selector = selector.replace( Expr.match.PSEUDO, "" ); |
| 2352 | } |
| 2353 | |
| 2354 | selector = Expr.relative[selector] ? selector + "*" : selector; |
| 2355 | |
| 2356 | for ( var i = 0, l = root.length; i < l; i++ ) { |
| 2357 | Sizzle( selector, root[i], tmpSet ); |
| 2358 | } |
| 2359 | |
| 2360 | return Sizzle.filter( later, tmpSet ); |
| 2361 | }; |
| 2362 | |
| 2363 | // EXPOSE |
| 2364 | jQuery.find = Sizzle; |