MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / getBindAttr

Function getBindAttr

06.Router/basic/js/vue.js:1177–1183  ·  view source on GitHub ↗

* Get an attribute with colon or v-bind: prefix. * * @param {Node} node * @param {String} name * @return {String|null}

(node, name)

Source from the content-addressed store, hash-verified

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.

Callers 4

getIsBindingFunction · 0.70
compilePropsFunction · 0.70
resolveSlotsFunction · 0.70
vue.jsFile · 0.70

Calls 1

getAttrFunction · 0.70

Tested by

no test coverage detected