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

Function createButtonPseudo

src/selector.js:232–237  ·  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

230 * @param {String} type
231 */
232function createButtonPseudo( type ) {
233 return function( elem ) {
234 return ( nodeName( elem, "input" ) || nodeName( elem, "button" ) ) &&
235 elem.type === type;
236 };
237}
238
239/**
240 * Returns a function to use in pseudos for :enabled/:disabled

Callers 1

selector.jsFile · 0.70

Calls 1

nodeNameFunction · 0.90

Tested by

no test coverage detected