Search code examples
javascriptnode.jseventseventemitter

Delete node.js events, listeners goes away too?


If I delete a node.js event, the listeners go away too right? I don't have to delete anything else?


Solution

  • You mean deleting an EventEmitter instance? (or, equally, an Object that inherits from EventEmitter?)

    In this case I think that each listener would be deleted as well when you delete the object instance, they're part of the object instance