MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / createPositionalPseudo

Function createPositionalPseudo

Three.js/js/jquery-1.9.1.js:4487–4503  ·  view source on GitHub ↗
( fn )

Source from the content-addressed store, hash-verified

4485
4486// Returns a function to use in pseudos for positionals
4487function createPositionalPseudo( fn ) {
4488 return markFunction(function( argument ) {
4489 argument = +argument;
4490 return markFunction(function( seed, matches ) {
4491 var j,
4492 matchIndexes = fn( [], seed.length, argument ),
4493 i = matchIndexes.length;
4494
4495 // Match elements found at the specified indexes
4496 while ( i-- ) {
4497 if ( seed[ (j = matchIndexes[i]) ] ) {
4498 seed[j] = !(matches[j] = seed[j]);
4499 }
4500 }
4501 });
4502 });
4503}
4504
4505/**
4506 * Utility function for retrieving the text value of an array of DOM nodes

Callers 1

jquery-1.9.1.jsFile · 0.85

Calls 1

markFunctionFunction · 0.85

Tested by

no test coverage detected