MCPcopy
hub / github.com/fanmingming/live / resolveConstructorOptions

Function resolveConstructorOptions

m3u8/vue.js:5029–5051  ·  view source on GitHub ↗
(Ctor)

Source from the content-addressed store, hash-verified

5027 }
5028
5029 function resolveConstructorOptions (Ctor) {
5030 var options = Ctor.options;
5031 if (Ctor.super) {
5032 var superOptions = resolveConstructorOptions(Ctor.super);
5033 var cachedSuperOptions = Ctor.superOptions;
5034 if (superOptions !== cachedSuperOptions) {
5035 // super option changed,
5036 // need to resolve new options.
5037 Ctor.superOptions = superOptions;
5038 // check if there are any late-modified/attached options (#4976)
5039 var modifiedOptions = resolveModifiedOptions(Ctor);
5040 // update base extend options
5041 if (modifiedOptions) {
5042 extend(Ctor.extendOptions, modifiedOptions);
5043 }
5044 options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
5045 if (options.name) {
5046 options.components[options.name] = Ctor;
5047 }
5048 }
5049 }
5050 return options
5051 }
5052
5053 function resolveModifiedOptions (Ctor) {
5054 var modified;

Callers 2

createComponentFunction · 0.85
initMixinFunction · 0.85

Calls 3

resolveModifiedOptionsFunction · 0.85
extendFunction · 0.85
mergeOptionsFunction · 0.85

Tested by

no test coverage detected