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

Function resolveConstructorOptions

static/vuejs/vue.runtime.js:3780–3802  ·  view source on GitHub ↗
(Ctor)

Source from the content-addressed store, hash-verified

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