3 ms·
For the record the code you linked to doesn't implement event delegation either, which is something pretty useful that even more modern libraries like React use
by fabiospampinato 5y ago
For the record the code you linked to doesn't implement event delegation either, which is something pretty useful that even more modern libraries like React use under the hood.
Here's [0] an article about the usefulness of namespaces, it has use cases beyond custom events, which have been implemented a real long time ago.
[0]: https://css-tricks.com/namespaced-events-jquery/ https://css-tricks.com/namespaced-events-jquery/