MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / getBooleanAttrName

Function getBooleanAttrName

lib/test/angular/1.6.7/angular.js:3542–3548  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

3540};
3541
3542function getBooleanAttrName(element, name) {
3543 // check dom last since we will most likely fail on name
3544 var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
3545
3546 // booleanAttr is here twice to minimize DOM access
3547 return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;
3548}
3549
3550function getAliasedAttrName(name) {
3551 return ALIASED_ATTR[name];

Callers 2

$CompileProviderFunction · 0.70
collectDirectivesFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected