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
In some scenario, on js side an additional optional second argument of off to only unsubscribe specific handler could be really helpful.
function firstHandler(){
console.log('I am on fire');
}
function secondHandler(){
console.log('me too');
}
Jockey.on('myEvent', firstHandler);
Jockey.on('myEvent', secondHandler);
Jockey.off('myEvent', secondHandler);
// when event 'myEvent' comes:
// output is only 'I am on fire'
I'd happy to provide a PR if other ppl also like to have this feature
The text was updated successfully, but these errors were encountered:
Hi, thanks for this great bridge!
In some scenario, on js side an additional optional second argument of
off
to only unsubscribe specific handler could be really helpful.I'd happy to provide a PR if other ppl also like to have this feature
The text was updated successfully, but these errors were encountered: