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

Function checkElementDirectives

06.Router/basic/js/vue.js:7320–7329  ·  view source on GitHub ↗

* Check for element directives (custom elements that should * be resovled as terminal directives). * * @param {Element} el * @param {Object} options

(el, options)

Source from the content-addressed store, hash-verified

7318 */
7319
7320 function checkElementDirectives(el, options) {
7321 var tag = el.tagName.toLowerCase();
7322 if (commonTagRE.test(tag)) {
7323 return;
7324 }
7325 var def = resolveAsset(options, 'elementDirectives', tag);
7326 if (def) {
7327 return makeTerminalNodeLinkFn(el, tag, '', options, def);
7328 }
7329 }
7330
7331 /**
7332 * Check if an element is a component. If yes, return

Callers 1

compileElementFunction · 0.70

Calls 2

resolveAssetFunction · 0.70
makeTerminalNodeLinkFnFunction · 0.70

Tested by

no test coverage detected