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

Function initUse

static/vuejs/vue.runtime.js:3850–3867  ·  view source on GitHub ↗
(Vue)

Source from the content-addressed store, hash-verified

3848/* */
3849
3850function initUse (Vue) {
3851 Vue.use = function (plugin) {
3852 /* istanbul ignore if */
3853 if (plugin.installed) {
3854 return
3855 }
3856 // additional parameters
3857 var args = toArray(arguments, 1);
3858 args.unshift(this);
3859 if (typeof plugin.install === 'function') {
3860 plugin.install.apply(plugin, args);
3861 } else if (typeof plugin === 'function') {
3862 plugin.apply(null, args);
3863 }
3864 plugin.installed = true;
3865 return this
3866 };
3867}
3868
3869/* */
3870

Callers 1

initGlobalAPIFunction · 0.70

Calls 1

toArrayFunction · 0.70

Tested by

no test coverage detected