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

Function initGlobalAPI

static/vuejs/vue.common.js:4126–4168  ·  view source on GitHub ↗
(Vue)

Source from the content-addressed store, hash-verified

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

Callers 1

vue.common.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