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

Function resolveModifiedOptions

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

Source from the content-addressed store, hash-verified

3812}
3813
3814function resolveModifiedOptions (Ctor) {
3815 var modified;
3816 var latest = Ctor.options;
3817 var sealed = Ctor.sealedOptions;
3818 for (var key in latest) {
3819 if (latest[key] !== sealed[key]) {
3820 if (!modified) { modified = {}; }
3821 modified[key] = dedupe(latest[key], sealed[key]);
3822 }
3823 }
3824 return modified
3825}
3826
3827function dedupe (latest, sealed) {
3828 // compare latest and sealed to ensure lifecycle hooks won't be duplicated

Callers 1

Calls 1

dedupeFunction · 0.70

Tested by

no test coverage detected