If click()
is called in a click event handler, then what is the result?
My thought is that it would enter an infinite call, but this is not true.
Here are the tests.
The click event handler will:
- call
.click()
- dispatch a click event created by MouseEvent
- dispatch a click event created by initMouseEvent
- call jQuery .click()
I have asked on StackOverflow.
I have not found out why.