MCPcopy Create free account
hub / github.com/idank/explainshell / createButtonPseudo

Function createButtonPseudo

explainshell/web/static/js/jquery.js:4479–4484  ·  view source on GitHub ↗
( type )

Source from the content-addressed store, hash-verified

4477
4478// Returns a function to use in pseudos for buttons
4479function createButtonPseudo( type ) {
4480 return function( elem ) {
4481 var name = elem.nodeName.toLowerCase();
4482 return (name === "input" || name === "button") && elem.type === type;
4483 };
4484}
4485
4486// Returns a function to use in pseudos for positionals
4487function createPositionalPseudo( fn ) {

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected