Re: [whatwg/dom] Removing event listeners through an identifier (#208)

I don't think we should allow any value to be used as the group identifier because that can easily lead to more objects being leaked. I'd suggest that we restrict it to regular strings and symbols which can't leak random other objects. We could allow numbers but not sure if it's worth effort since toString on a number would be just as effective.

In fact, I'd go far as to say I'd object to the proposal which allows any object to be used as a group identifier.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/208#issuecomment-310935123

Received on Sunday, 25 June 2017 23:17:57 UTC