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