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

Function resolveConstructorOptions

static/vuejs/vue.runtime.common.js:3786–3808  ·  view source on GitHub ↗
(Ctor)

Source from the content-addressed store, hash-verified

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