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

Function checkComponents

static/vuejs/vue.js:1136–1146  ·  view source on GitHub ↗

* Validate component names

(options)

Source from the content-addressed store, hash-verified

1134 * Validate component names
1135 */
1136function checkComponents (options) {
1137 for (var key in options.components) {
1138 var lower = key.toLowerCase();
1139 if (isBuiltInTag(lower) || config.isReservedTag(lower)) {
1140 warn(
1141 'Do not use built-in or reserved HTML elements as component ' +
1142 'id: ' + key
1143 );
1144 }
1145 }
1146}
1147
1148/**
1149 * 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