MCPcopy
hub / github.com/apache/caldera / createButtonPseudo

Function createButtonPseudo

static/jquery/jquery.js:1014–1019  ·  view source on GitHub ↗

* Returns a function to use in pseudos for buttons * @param {String} type

( type )

Source from the content-addressed store, hash-verified

1012 * @param {String} type
1013 */
1014function createButtonPseudo( type ) {
1015 return function( elem ) {
1016 var name = elem.nodeName.toLowerCase();
1017 return (name === "input" || name === "button") && elem.type === type;
1018 };
1019}
1020
1021/**
1022 * Returns a function to use in pseudos for positionals

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected