MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / createButtonPseudo

Function createButtonPseudo

libs/jquery-3.5.1/jquery-3.5.1.js:1008–1013  ·  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

1006 * @param {String} type
1007 */
1008function createButtonPseudo( type ) {
1009 return function( elem ) {
1010 var name = elem.nodeName.toLowerCase();
1011 return ( name === "input" || name === "button" ) && elem.type === type;
1012 };
1013}
1014
1015/**
1016 * Returns a function to use in pseudos for :enabled/:disabled

Callers 1

jquery-3.5.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected