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

Function checkComponents

static/vuejs/vue.runtime.common.js:1128–1138  ·  view source on GitHub ↗

* Validate component names

(options)

Source from the content-addressed store, hash-verified

1126 * Validate component names
1127 */
1128function checkComponents (options) {
1129 for (var key in options.components) {
1130 var lower = key.toLowerCase();
1131 if (isBuiltInTag(lower) || config.isReservedTag(lower)) {
1132 warn(
1133 'Do not use built-in or reserved HTML elements as component ' +
1134 'id: ' + key
1135 );
1136 }
1137 }
1138}
1139
1140/**
1141 * Ensure all props option syntax are normalized into the

Callers 1

mergeOptionsFunction · 0.70

Calls 1

warnFunction · 0.50

Tested by

no test coverage detected