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
varhappens=require('happens');vara=happens();varb=happens().bubble(a);a.on('change',function(){console.log('changed a');});b.on('change',function(){console.log('changed b');});b.emit('change');// 1) change b 2) changed a
There needs to be a way to stop the bubbling at any time though. No event (instance) param should be passed along any event handler, for clean signature.
The text was updated successfully, but these errors were encountered:
Something like:
There needs to be a way to stop the bubbling at any time though. No
event
(instance) param should be passed along any event handler, for clean signature.The text was updated successfully, but these errors were encountered: