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

Function resolveConstructorOptions

static/vuejs/vue.common.js:3790–3812  ·  view source on GitHub ↗
(Ctor)

Source from the content-addressed store, hash-verified

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