MCPcopy Index your code
hub / github.com/documentcloud/visualsearch / createInputPseudo

Function createInputPseudo

build-min/dependencies.js:54–54  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

52if(cur){while((cur=cur.nextSibling)){if(cur===b){return-1;}}}
53return a?1:-1;}
54function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type;};}
55function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type;};}
56function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[(j=matchIndexes[i])]){seed[j]=!(matches[j]=seed[j]);}}});});}
57function testContext(context){return context&&typeof context.getElementsByTagName!==strundefined&&context;}

Callers 1

dependencies.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected