You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's very useful to write the same logic for subscribing/unsubscribing to bus events in a separate function, and then call it passing Vue.bus.on or Vue.bus.off as an argument. But for now one cannot do this because of some this magic - a TypeError occurs.
It's very useful to write the same logic for subscribing/unsubscribing to bus events in a separate function, and then call it passing
Vue.bus.on
orVue.bus.off
as an argument. But for now one cannot do this because of somethis
magic - aTypeError
occurs.Here's a minimal example to reproduce this issue:
Current workaround is to pass
Vue.bus.on.bind(Vue.bus)
instead ofVue.bus.on
, but it's definitely not the way it should go.The text was updated successfully, but these errors were encountered: