MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / getBooleanAttrName

Function getBooleanAttrName

code/songhop/www/lib/angular/angular.js:2779–2785  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

2777};
2778
2779function getBooleanAttrName(element, name) {
2780 // check dom last since we will most likely fail on name
2781 var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
2782
2783 // booleanAttr is here twice to minimize DOM access
2784 return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;
2785}
2786
2787function getAliasedAttrName(element, name) {
2788 var nodeName = element.nodeName;

Callers 2

$CompileProviderFunction · 0.70
collectDirectivesFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected