MCPcopy Index your code
hub / github.com/components/jquery / createButtonPseudo

Function createButtonPseudo

jquery.js:1324–1329  ·  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

1322 * @param {String} type
1323 */
1324function createButtonPseudo( type ) {
1325 return function( elem ) {
1326 return ( nodeName( elem, "input" ) || nodeName( elem, "button" ) ) &&
1327 elem.type === type;
1328 };
1329}
1330
1331/**
1332 * Returns a function to use in pseudos for :enabled/:disabled

Callers 1

jquery.jsFile · 0.70

Calls 1

nodeNameFunction · 0.70

Tested by

no test coverage detected