MCPcopy Index your code
hub / github.com/caike/jQuery-Simple-Timer / createPositionalPseudo

Function createPositionalPseudo

examples/bundle.js:1285–1301  ·  view source on GitHub ↗

* Returns a function to use in pseudos for positionals * @param {Function} fn

( fn )

Source from the content-addressed store, hash-verified

1283 * @param {Function} fn
1284 */
1285function createPositionalPseudo( fn ) {
1286 return markFunction(function( argument ) {
1287 argument = +argument;
1288 return markFunction(function( seed, matches ) {
1289 var j,
1290 matchIndexes = fn( [], seed.length, argument ),
1291 i = matchIndexes.length;
1292
1293 // Match elements found at the specified indexes
1294 while ( i-- ) {
1295 if ( seed[ (j = matchIndexes[i]) ] ) {
1296 seed[j] = !(matches[j] = seed[j]);
1297 }
1298 }
1299 });
1300 });
1301}
1302
1303/**
1304 * Checks a node for validity as a Sizzle context

Callers 1

bundle.jsFile · 0.85

Calls 1

markFunctionFunction · 0.85

Tested by

no test coverage detected