* Get an attribute with colon or v-bind: prefix. * * @param {Node} node * @param {String} name * @return {String|null}
(node, name)
| 1175 | */ |
| 1176 | |
| 1177 | function getBindAttr(node, name) { |
| 1178 | var val = getAttr(node, ':' + name); |
| 1179 | if (val === null) { |
| 1180 | val = getAttr(node, 'v-bind:' + name); |
| 1181 | } |
| 1182 | return val; |
| 1183 | } |
| 1184 | |
| 1185 | /** |
| 1186 | * Check the presence of a bind attribute. |
no test coverage detected