In jQuery documentation , we have the explanation of event.namespace
.
This allows you to use a jQuery specific event (or create a specific event)
with a namespace, through a .
point and a name in front of that event.
Example:
$(document).on('click.first_event', function (event)
{
alert(event.namespace);
});
I would like to know what is the advantage of using events with these namespaces
in jQuery?
What is the purpose of these namespaces
?