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

Function resolveConstructorOptions

static/vuejs/vue.esm.js:3788–3810  ·  view source on GitHub ↗
(Ctor)

Source from the content-addressed store, hash-verified

3786}
3787
3788function resolveConstructorOptions (Ctor) {
3789 var options = Ctor.options;
3790 if (Ctor.super) {
3791 var superOptions = resolveConstructorOptions(Ctor.super);
3792 var cachedSuperOptions = Ctor.superOptions;
3793 if (superOptions !== cachedSuperOptions) {
3794 // super option changed,
3795 // need to resolve new options.
3796 Ctor.superOptions = superOptions;
3797 // check if there are any late-modified/attached options (#4976)
3798 var modifiedOptions = resolveModifiedOptions(Ctor);
3799 // update base extend options
3800 if (modifiedOptions) {
3801 extend(Ctor.extendOptions, modifiedOptions);
3802 }
3803 options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
3804 if (options.name) {
3805 options.components[options.name] = Ctor;
3806 }
3807 }
3808 }
3809 return options
3810}
3811
3812function resolveModifiedOptions (Ctor) {
3813 var modified;

Callers 2

createComponentFunction · 0.70
initMixinFunction · 0.70

Calls 3

resolveModifiedOptionsFunction · 0.70
extendFunction · 0.70
mergeOptionsFunction · 0.70

Tested by

no test coverage detected