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

Function initUse

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

Source from the content-addressed store, hash-verified

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

Callers 1

initGlobalAPIFunction · 0.70

Calls 1

toArrayFunction · 0.70

Tested by

no test coverage detected