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

Function createButtonPseudo

2.1.1/test/jquery-1.11.1.js:990–995  ·  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

988 * @param {String} type
989 */
990function createButtonPseudo( type ) {
991 return function( elem ) {
992 var name = elem.nodeName.toLowerCase();
993 return (name === "input" || name === "button") && elem.type === type;
994 };
995}
996
997/**
998 * Returns a function to use in pseudos for positionals

Callers 1

jquery-1.11.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected