开发者

Delete node.js events, listeners goes away too?

开发者 https://www.devze.com 2023-03-06 17:26 出处:网络
If I delete a node.js event, the list开发者_开发百科eners go away too right? I don\'t have to delete anything else?You mean deleting an EventEmitter instance? (or, equally, an Object that inherits fro

If I delete a node.js event, the list开发者_开发百科eners go away too right? I don't have to delete anything else?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消