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

Function resolve

static/vuejs/vue.esm.js:3131–3144  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

3129 var sync = true;
3130
3131 var resolve = function (res) {
3132 if (isObject(res)) {
3133 res = baseCtor.extend(res);
3134 }
3135 // cache resolved
3136 factory.resolved = res;
3137 // invoke callbacks only if this is not a synchronous resolve
3138 // (async resolves are shimmed as synchronous during SSR)
3139 if (!sync) {
3140 for (var i = 0, l = cbs.length; i < l; i++) {
3141 cbs[i](res);
3142 }
3143 }
3144 };
3145
3146 var reject = function (reason) {
3147 process.env.NODE_ENV !== 'production' && warn(

Callers

nothing calls this directly

Calls 2

extendMethod · 0.80
isObjectFunction · 0.70

Tested by

no test coverage detected