MCPcopy Create free account
hub / github.com/ygs-code/vue / genGuard

Function genGuard

vue.js:14478–14480  ·  view source on GitHub ↗
(condition)

Source from the content-addressed store, hash-verified

14476 // need to explicitly return null so that we can determine whether to remove
14477 // the listener for .once
14478 var genGuard = function (condition) {
14479 return ("if(" + condition + ")return null;");
14480 };
14481
14482 var modifierCode = {
14483 stop: '$event.stopPropagation();',

Callers 2

vue.jsFile · 0.85
genHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected