MCPcopy
hub / github.com/requirejs/requirejs / posProcess

Function posProcess

tests/jquery/scripts/jquery-1.7.1.js:5266–5286  ·  view source on GitHub ↗
( selector, context, seed )

Source from the content-addressed store, hash-verified

5264};
5265
5266var posProcess = function( selector, context, seed ) {
5267 var match,
5268 tmpSet = [],
5269 later = "",
5270 root = context.nodeType ? [context] : context;
5271
5272 // Position selectors must be done after the filter
5273 // And so must :not(positional) so we move all PSEUDOs to the end
5274 while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
5275 later += match[0];
5276 selector = selector.replace( Expr.match.PSEUDO, "" );
5277 }
5278
5279 selector = Expr.relative[selector] ? selector + "*" : selector;
5280
5281 for ( var i = 0, l = root.length; i < l; i++ ) {
5282 Sizzle( selector, root[i], tmpSet, seed );
5283 }
5284
5285 return Sizzle.filter( later, tmpSet );
5286};
5287
5288// EXPOSE
5289// Override sizzle attribute retrieval

Callers 1

SizzleFunction · 0.85

Calls 1

SizzleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…