import Vue from 'vue'
class EventBus {
constructor () {
this._eventBus = null
}
get $bus () {
if (!this._eventBus) {
this._eventBus = new Vue()
}
return this._eventBus
}
}
const _EventBus = new EventBus()
export * from './eventTypes'
export default _EventBus.$bus