MCPcopy
hub / github.com/jquery/jquery / createInputPseudo

Function createInputPseudo

dist-module/jquery.module.js:1300–1304  ·  view source on GitHub ↗

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

( type )

Source from the content-addressed store, hash-verified

1298 * @param {String} type
1299 */
1300function createInputPseudo( type ) {
1301 return function( elem ) {
1302 return nodeName( elem, "input" ) && elem.type === type;
1303 };
1304}
1305
1306/**
1307 * Returns a function to use in pseudos for buttons

Callers 1

jQueryFactoryFunction · 0.70

Calls 1

nodeNameFunction · 0.70

Tested by

no test coverage detected