MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / createButtonPseudo

Function createButtonPseudo

camera/jquery.js:954–959  ·  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

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

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected