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

Function getBooleanAttrName

lib/test/angular/1.8.0/angular.js:3647–3653  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

3645};
3646
3647function getBooleanAttrName(element, name) {
3648 // check dom last since we will most likely fail on name
3649 var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
3650
3651 // booleanAttr is here twice to minimize DOM access
3652 return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;
3653}
3654
3655function getAliasedAttrName(name) {
3656 return ALIASED_ATTR[name];

Callers 2

$CompileProviderFunction · 0.70
collectDirectivesFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected