Message from JavaScript discussions

November 2017

— You'd have to pass the once: true property in the options argument

— 

So for browsers, it would look like:

entryEmitter.addEventListener('entry', function (entry) {
// ...
}, { once: true });

— But ehh, you can include nodejs event emitters as part of a browser bundle

— Which might be better, since DOM event emitters are usually HTML elements

— Https://github.com/asyncly/EventEmitter2

— But might be overkill for your use-case :P

— You could also create a DOM element outside of the document body and just use that

— It's absolutely an overkill

— Hahaha

— But ehh, I'd rather use monadic types :P

— Heh, yeah

— Oh my!!! i didn't notice that! thanks alot. let me check to see if it works after correction :)