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

Function initGlobalAPI

static/vuejs/vue.runtime.js:4116–4158  ·  view source on GitHub ↗
(Vue)

Source from the content-addressed store, hash-verified

4114/* */
4115
4116function initGlobalAPI (Vue) {
4117 // config
4118 var configDef = {};
4119 configDef.get = function () { return config; };
4120 {
4121 configDef.set = function () {
4122 warn(
4123 'Do not replace the Vue.config object, set individual fields instead.'
4124 );
4125 };
4126 }
4127 Object.defineProperty(Vue, 'config', configDef);
4128
4129 // exposed util methods.
4130 // NOTE: these are not considered part of the public API - avoid relying on
4131 // them unless you are aware of the risk.
4132 Vue.util = {
4133 warn: warn,
4134 extend: extend,
4135 mergeOptions: mergeOptions,
4136 defineReactive: defineReactive$$1
4137 };
4138
4139 Vue.set = set;
4140 Vue.delete = del;
4141 Vue.nextTick = nextTick;
4142
4143 Vue.options = Object.create(null);
4144 config._assetTypes.forEach(function (type) {
4145 Vue.options[type + 's'] = Object.create(null);
4146 });
4147
4148 // this is used to identify the "base" constructor to extend all plain-object
4149 // components with in Weex's multi-instance scenarios.
4150 Vue.options._base = Vue;
4151
4152 extend(Vue.options.components, builtInComponents);
4153
4154 initUse(Vue);
4155 initMixin$1(Vue);
4156 initExtend(Vue);
4157 initAssetRegisters(Vue);
4158}
4159
4160initGlobalAPI(Vue$2);
4161

Callers 1

vue.runtime.jsFile · 0.70

Calls 6

extendFunction · 0.70
initUseFunction · 0.70
initMixin$1Function · 0.70
initExtendFunction · 0.70
initAssetRegistersFunction · 0.70
warnFunction · 0.50

Tested by

no test coverage detected