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

Function normalizeDirectives

static/vuejs/vue.esm.js:1177–1187  ·  view source on GitHub ↗

* Normalize raw function directives into object format.

(options)

Source from the content-addressed store, hash-verified

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

Callers 1

mergeOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected