MCPcopy
hub / github.com/layui/layui / createButtonPseudo

Function createButtonPseudo

src/modules/jquery.js:1019–1026  ·  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

1017 * @param {String} type
1018 */
1019 function createButtonPseudo(type) {
1020 return function (elem) {
1021 return (
1022 (nodeName(elem, 'input') || nodeName(elem, 'button')) &&
1023 elem.type === type
1024 );
1025 };
1026 }
1027
1028 /**
1029 * Returns a function to use in pseudos for :enabled/:disabled

Callers 1

jquery.jsFile · 0.85

Calls 1

nodeNameFunction · 0.85

Tested by

no test coverage detected