I encountered a peculiar situation.
If you try double clicking on "Insane" on this fiddle, you will observe that the onreadystatechange
function is triggered 3 times, all with readyState = 4
. To me, this seems quite bizarre.
What's even more surprising is that when I eliminate the alert(added)
from the double click event listener function as depicted in this fiddle, then everything works fine.
Can anyone provide an explanation for this phenomenon? It's truly perplexing to me. Thank you in advance. :)