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

Function normalizeDirectives

static/vuejs/vue.runtime.js:1179–1189  ·  view source on GitHub ↗

* Normalize raw function directives into object format.

(options)

Source from the content-addressed store, hash-verified

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

Callers 1

mergeOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected