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

Function initGlobalAPI

static/vuejs/vue.runtime.common.js:4122–4164  ·  view source on GitHub ↗
(Vue)

Source from the content-addressed store, hash-verified

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

Callers 1

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