Open acacha opened 6 years ago
I can avoid this problem using:
// Extend `Vue.prototype` to include our global event bus.
if (! Vue.prototype.hasOwnProperty('$events')) {
Object.defineProperty(Vue.prototype, '$events', {
get: function get() {
return events;
}
});
}
When defining $events property. Do you want I create a PR? But reading the code ti seems to me that this is a Bug related with:
if (plugin.installed) return
Maybe only works with vue 1?
Feel free to PR the code change from above. I'll take a look and make sure everything is square before publishing a new version.
If I use this package in 2 different libraries and then use this 2 librares in another one then thw following problem occurs:
Any clue how can I solve this problem?