(
el,
name,
removeFromMap
)
| 7093 | // By default it does NOT remove it from the map (attrsMap) because the map is |
| 7094 | // needed during codegen. |
| 7095 | function getAndRemoveAttr ( |
| 7096 | el, |
| 7097 | name, |
| 7098 | removeFromMap |
| 7099 | ) { |
| 7100 | var val; |
| 7101 | if ((val = el.attrsMap[name]) != null) { |
| 7102 | var list = el.attrsList; |
| 7103 | for (var i = 0, l = list.length; i < l; i++) { |
| 7104 | if (list[i].name === name) { |
| 7105 | list.splice(i, 1); |
| 7106 | break |
| 7107 | } |
| 7108 | } |
| 7109 | } |
| 7110 | if (removeFromMap) { |
| 7111 | delete el.attrsMap[name]; |
| 7112 | } |
| 7113 | return val |
| 7114 | } |
| 7115 | |
| 7116 | function getAndRemoveAttrByRegex ( |
| 7117 | el, |
no outgoing calls
no test coverage detected