MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / getBooleanAttrName

Function getBooleanAttrName

web/static/bower_components/angular/angular.js:3075–3081  ·  view source on GitHub ↗
(element, name)

Source from the content-addressed store, hash-verified

3073};
3074
3075function getBooleanAttrName(element, name) {
3076 // check dom last since we will most likely fail on name
3077 var booleanAttr = BOOLEAN_ATTR[name.toLowerCase()];
3078
3079 // booleanAttr is here twice to minimize DOM access
3080 return booleanAttr && BOOLEAN_ELEMENTS[nodeName_(element)] && booleanAttr;
3081}
3082
3083function getAliasedAttrName(name) {
3084 return ALIASED_ATTR[name];

Callers 2

$CompileProviderFunction · 0.85
collectDirectivesFunction · 0.85

Calls 1

nodeName_Function · 0.85

Tested by

no test coverage detected