MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / mergeAssets

Function mergeAssets

01.GettingStarted/js/vue.js:1728–1731  ·  view source on GitHub ↗

* Assets * * When a vm is present (instance creation), we need to do * a three-way merge between constructor options, instance * options and parent options.

(parentVal, childVal)

Source from the content-addressed store, hash-verified

1726 */
1727
1728 function mergeAssets(parentVal, childVal) {
1729 var res = Object.create(parentVal || null);
1730 return childVal ? extend(res, guardArrayAssets(childVal)) : res;
1731 }
1732
1733 config._assetTypes.forEach(function (type) {
1734 strats[type + 's'] = mergeAssets;

Callers

nothing calls this directly

Calls 2

extendFunction · 0.70
guardArrayAssetsFunction · 0.70

Tested by

no test coverage detected