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

Function createButtonPseudo

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

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

Callers 1

jQueryFactoryWrapperFunction · 0.70

Calls 1

nodeNameFunction · 0.70

Tested by

no test coverage detected