MCPcopy
hub / github.com/fanmingming/live / initGlobalAPI

Function initGlobalAPI

m3u8/vue.js:5371–5419  ·  view source on GitHub ↗
(Vue)

Source from the content-addressed store, hash-verified

5369 /* */
5370
5371 function initGlobalAPI (Vue) {
5372 // config
5373 var configDef = {};
5374 configDef.get = function () { return config; };
5375 {
5376 configDef.set = function () {
5377 warn(
5378 'Do not replace the Vue.config object, set individual fields instead.'
5379 );
5380 };
5381 }
5382 Object.defineProperty(Vue, 'config', configDef);
5383
5384 // exposed util methods.
5385 // NOTE: these are not considered part of the public API - avoid relying on
5386 // them unless you are aware of the risk.
5387 Vue.util = {
5388 warn: warn,
5389 extend: extend,
5390 mergeOptions: mergeOptions,
5391 defineReactive: defineReactive$$1
5392 };
5393
5394 Vue.set = set;
5395 Vue.delete = del;
5396 Vue.nextTick = nextTick;
5397
5398 // 2.6 explicit observable API
5399 Vue.observable = function (obj) {
5400 observe(obj);
5401 return obj
5402 };
5403
5404 Vue.options = Object.create(null);
5405 ASSET_TYPES.forEach(function (type) {
5406 Vue.options[type + 's'] = Object.create(null);
5407 });
5408
5409 // this is used to identify the "base" constructor to extend all plain-object
5410 // components with in Weex's multi-instance scenarios.
5411 Vue.options._base = Vue;
5412
5413 extend(Vue.options.components, builtInComponents);
5414
5415 initUse(Vue);
5416 initMixin$1(Vue);
5417 initExtend(Vue);
5418 initAssetRegisters(Vue);
5419 }
5420
5421 initGlobalAPI(Vue);
5422

Callers 1

vue.jsFile · 0.85

Calls 7

warnFunction · 0.85
observeFunction · 0.85
extendFunction · 0.85
initUseFunction · 0.85
initMixin$1Function · 0.85
initExtendFunction · 0.85
initAssetRegistersFunction · 0.85

Tested by

no test coverage detected