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

Function createButtonPseudo

2.1.1/test/jquery-2.1.1.js:953–958  ·  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

951 * @param {String} type
952 */
953function createButtonPseudo( type ) {
954 return function( elem ) {
955 var name = elem.nodeName.toLowerCase();
956 return (name === "input" || name === "button") && elem.type === type;
957 };
958}
959
960/**
961 * Returns a function to use in pseudos for positionals

Callers 1

jquery-2.1.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected