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

Function resolve

static/vuejs/vue.js:3133–3146  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

extendMethod · 0.80
isObjectFunction · 0.70

Tested by

no test coverage detected