MCPcopy
hub / github.com/angular-ui/ui-router / getBooleanAttrName

Function getBooleanAttrName

test/angular/1.3/angular.js:2824–2830  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

2822};
2823
2824function getBooleanAttrName(element, name) {
2825 // check dom last since we will most likely fail on name
2826 var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
2827
2828 // booleanAttr is here twice to minimize DOM access
2829 return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;
2830}
2831
2832function getAliasedAttrName(element, name) {
2833 var nodeName = element.nodeName;

Callers 2

$CompileProviderFunction · 0.70
collectDirectivesFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected