MCPcopy Create free account
hub / github.com/JsAaron/jQuery / createButtonPseudo

Function createButtonPseudo

2.0.3/2.0.3.js:1270–1275  ·  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

1268 * @param {String} type
1269 */
1270 function createButtonPseudo( type ) {
1271 return function( elem ) {
1272 var name = elem.nodeName.toLowerCase();
1273 return (name === "input" || name === "button") && elem.type === type;
1274 };
1275 }
1276
1277 /**
1278 * Returns a function to use in pseudos for positionals

Callers 1

2.0.3.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected