-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
Description
Would be neat if $on
supported an array of events:
bus.$on(['CLICK_BODY', 'KEYUP_ESCAPE'], () => {
this.active = false
})
Without it we need duplication
bus.$on('CLICK_BODY', () => {
this.active = false
})
bus.$on('KEYUP_ESCAPE', () => {
this.active = false
})
// or
bus.$on('CLICK_BODY', deactivate)
bus.$on('KEYUP_ESCAPE', deactivate)
amirrustam, zoomclub and jackPanyj