Skip to content

Commit 5975a16

Browse files
committed
Remove global component registration
1 parent c3b5ed5 commit 5975a16

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/main.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,6 @@ import Question from './components/Question.vue'
44
import QuestionModel, { QuestionType, ChoiceOption, LinkOption, MaskPresets } from './models/QuestionModel'
55
import LanguageModel from './models/LanguageModel'
66

7-
// Declare install function executed by Vue.use()
8-
export function install(Vue) {
9-
if (install.installed) return
10-
install.installed = true
11-
Vue.component('FlowForm', FlowForm)
12-
}
13-
14-
// Create module definition for Vue.use()
15-
const plugin = {
16-
install
17-
}
18-
19-
// Auto-install when vue is found (eg. in browser via <script> tag)
20-
let GlobalVue = null
21-
if (typeof window !== 'undefined') {
22-
GlobalVue = window.Vue
23-
} else if (typeof global !== 'undefined') {
24-
GlobalVue = global.Vue
25-
}
26-
if (GlobalVue) {
27-
GlobalVue.use(plugin)
28-
}
29-
307
// To allow use as module (npm/webpack/etc.) export component
318
export default FlowForm
329

0 commit comments

Comments
 (0)