1
In the jQuery documentation, there is the explanation of event.namespace
.
This allows you to use an event (or create an event) specific to jQuery,
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 are these for namespaces
?
Note: Not a duplicate of http://answall.com/questions/47956/eventos-com-namespace
– Wallace Maxters
I don’t think it’s a duplicate, it asks how to replicate in pure javascript.
– Guilherme Nascimento
But the staff was very quick to mark as duplicate. I also do not agree - or else I would not have asked.
– Wallace Maxters
Wallace is not really a message for you, but for the analysis queue, when someone goes to click to close, will read my comment next to the question, so I put my opinion that this is not a duplicate, I commented through the analysis queue directly and marked to leave open.
– Guilherme Nascimento