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

Function initUse

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

Source from the content-addressed store, hash-verified

3856/* */
3857
3858function initUse (Vue) {
3859 Vue.use = function (plugin) {
3860 /* istanbul ignore if */
3861 if (plugin.installed) {
3862 return
3863 }
3864 // additional parameters
3865 var args = toArray(arguments, 1);
3866 args.unshift(this);
3867 if (typeof plugin.install === 'function') {
3868 plugin.install.apply(plugin, args);
3869 } else if (typeof plugin === 'function') {
3870 plugin.apply(null, args);
3871 }
3872 plugin.installed = true;
3873 return this
3874 };
3875}
3876
3877/* */
3878

Callers 1

initGlobalAPIFunction · 0.70

Calls 1

toArrayFunction · 0.70

Tested by

no test coverage detected