javascript - Event capturing namespace -
somewhere in app have tabs component , tabs use specific component must use event capturing on window
(because d3...), anyway, question how namespcae these specific events run "cleanup" them when switching between tabs (because window
shared between them).
for example: (should fired on own tab)
window.addeventlistener("mouseup", function(e){ console.log(1); // simplified code });
i cannot remove mouseup
event listeners in cleanup method because knows else relies on event somewhere else. want clean specific ones. jquery namespacing events easy, jquery doesn't support event capturing.
Comments
Post a Comment