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

Function findRef

06.Router/basic/js/vue.js:1459–1469  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1457 var refRE = /^v-ref:/;
1458
1459 function findRef(node) {
1460 if (node.hasAttributes()) {
1461 var attrs = node.attributes;
1462 for (var i = 0, l = attrs.length; i < l; i++) {
1463 var name = attrs[i].name;
1464 if (refRE.test(name)) {
1465 return camelize(name.replace(refRE, ''));
1466 }
1467 }
1468 }
1469 }
1470
1471 /**
1472 * Map a function to a range of nodes .

Callers 2

checkComponentFunction · 0.70
makeTerminalNodeLinkFnFunction · 0.70

Calls 1

camelizeFunction · 0.70

Tested by

no test coverage detected