MCPcopy
hub / github.com/jquery/jquery / createButtonPseudo

Function createButtonPseudo

dist-module/jquery.module.js:1310–1315  ·  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

1308 * @param {String} type
1309 */
1310function createButtonPseudo( type ) {
1311 return function( elem ) {
1312 return ( nodeName( elem, "input" ) || nodeName( elem, "button" ) ) &&
1313 elem.type === type;
1314 };
1315}
1316
1317/**
1318 * Returns a function to use in pseudos for :enabled/:disabled

Callers 1

jQueryFactoryFunction · 0.70

Calls 1

nodeNameFunction · 0.70

Tested by

no test coverage detected