vsync vsync - 3 years ago 191
Javascript Question

How does jQuery event namespace works

I would like to understand how jQuery event namespacing works across different browsers.

I don't see anything about this on MDN and I would like to know how to namespace events without using jQuery as well (on older IE as well on modern browsers)




Update (Oct 1st, 2017):



If anyone is interested, I've answered in another question how to write minimal events emitter with namespaces in Vanilla JavaScript:
https://stackoverflow.com/a/44432013/104380

Answer Source

jQuery event namespaces are exactly that – jQuery event namespaces.

This feature is unique to jQuery; the DOM doesn't have anything like it.

The point of event namespaces is the ability to remove your event handlers by name only; the DOM APIs don't do that at all.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download