emittery icon indicating copy to clipboard operation
emittery copied to clipboard

Different approach to preventing userland from emitting meta events

Open lukehorvat opened this issue 2 years ago • 2 comments

Fixes #97. I implemented @thetutlage's solution here.

lukehorvat avatar Jun 05 '22 18:06 lukehorvat

@lukehorvat Bump :)

sindresorhus avatar Aug 08 '22 12:08 sindresorhus

Sorry, completely forgot to follow up on this... 🤦🏻‍♂️

I pushed a commit adding a finally block to ensure canEmitMetaEvents always gets reverted to false. So I think this should be ready to go now?

lukehorvat avatar Aug 10 '22 16:08 lukehorvat

Thanks :)

sindresorhus avatar Aug 11 '22 12:08 sindresorhus