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

Function initGlobalAPI

static/vuejs/vue.esm.js:4124–4166  ·  view source on GitHub ↗
(Vue)

Source from the content-addressed store, hash-verified

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

Callers 1

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