You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Symbols can not be enumerated with for ... in or Object.keys(events).on they are just being ignored in such cases.
Sorry, I don't have time for a proper PR, but here is a possible solution
// instead of using `for ... in` you can process each key type individually// Symbol-keysObject.getOwnPropertySymbols(events).forEach(function(event){// this.on/off/etc....});// String-keysObject.getOwnPropertyNames(events).forEach(function(event){// this.on/off/etc....});
The text was updated successfully, but these errors were encountered:
Hi there,
just noticed you've added Symbol support. There is one bug though when using pair events like this:
Since Symbols can not be enumerated with
for ... in
orObject.keys(events).on
they are just being ignored in such cases.Sorry, I don't have time for a proper PR, but here is a possible solution
The text was updated successfully, but these errors were encountered: