MCPcopy Index your code
hub / github.com/angular-ui/ui-router / getBooleanAttrName

Function getBooleanAttrName

test/angular/1.5/angular.js:3307–3313  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

3305};
3306
3307function getBooleanAttrName(element, name) {
3308 // check dom last since we will most likely fail on name
3309 var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
3310
3311 // booleanAttr is here twice to minimize DOM access
3312 return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;
3313}
3314
3315function getAliasedAttrName(name) {
3316 return ALIASED_ATTR[name];

Callers 2

$CompileProviderFunction · 0.70
collectDirectivesFunction · 0.70

Calls 1

nodeName_Function · 0.70

Tested by

no test coverage detected