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

Function normalizeDirectives

static/vuejs/vue.runtime.esm.js:1173–1183  ·  view source on GitHub ↗

* Normalize raw function directives into object format.

(options)

Source from the content-addressed store, hash-verified

1171 * Normalize raw function directives into object format.
1172 */
1173function normalizeDirectives (options) {
1174 var dirs = options.directives;
1175 if (dirs) {
1176 for (var key in dirs) {
1177 var def = dirs[key];
1178 if (typeof def === 'function') {
1179 dirs[key] = { bind: def, update: def };
1180 }
1181 }
1182 }
1183}
1184
1185/**
1186 * Merge two option objects into a new one.

Callers 1

mergeOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected