Click event and namespaced click event - which fires first and will stopPropagation() cancel one of them?

Viewed 44

Example: foundation dropdown has namespaced event click.fndtn.dropdown. Their code binds to it, but not to pure click.

What happens when I bind to click event of same element?

  1. Which event fires first?

  2. If I call event.stopPropagation() in click handler will that cancel click.fndtn.dropdown handler?

  3. If I call event.stopPropagation() in click.fndtn.dropdown handler will that cancel click handler?

1 Answers
Related