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

Function getBooleanAttrName

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

Source from the content-addressed store, hash-verified

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

Callers 2

$CompileProviderFunction · 0.70
collectDirectivesFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected