MCPcopy Create free account
hub / github.com/TruthHun/BookStack / checkEvent

Function checkEvent

static/vuejs/vue.common.js:8903–8912  ·  view source on GitHub ↗
(exp, text, errors)

Source from the content-addressed store, hash-verified

8901}
8902
8903function checkEvent (exp, text, errors) {
8904 var keywordMatch = exp.replace(stripStringRE, '').match(unaryOperatorsRE);
8905 if (keywordMatch) {
8906 errors.push(
8907 "avoid using JavaScript unary operator as property name: " +
8908 "\"" + (keywordMatch[0]) + "\" in expression " + (text.trim())
8909 );
8910 }
8911 checkExpression(exp, text, errors);
8912}
8913
8914function checkFor (node, text, errors) {
8915 checkExpression(node.for || '', text, errors);

Callers 1

checkNodeFunction · 0.70

Calls 1

checkExpressionFunction · 0.70

Tested by

no test coverage detected