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

Function normalizeDirectives

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

* Normalize raw function directives into object format.

(options)

Source from the content-addressed store, hash-verified

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

Callers 1

mergeOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected