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

Function parseModifiers

06.Router/basic/js/vue.js:7575–7585  ·  view source on GitHub ↗

* Parse modifiers from directive attribute name. * * @param {String} name * @return {Object}

(name)

Source from the content-addressed store, hash-verified

7573 */
7574
7575 function parseModifiers(name) {
7576 var res = Object.create(null);
7577 var match = name.match(modifierRE);
7578 if (match) {
7579 var i = match.length;
7580 while (i--) {
7581 res[match[i].slice(1)] = true;
7582 }
7583 }
7584 return res;
7585 }
7586
7587 /**
7588 * Build a link function for all directives on a single node.

Callers 2

checkTerminalDirectivesFunction · 0.70
compileDirectivesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected