Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Kill onreadystatechange handler after readyState 4 #93
There's a bug that apparently only affects a subset of Webkit browsers where if the execution is halted (through a debugger, for example), an xhr object can fire the readystatechange event (with
I'm also linking to 2 jsfiddles that illustrate the issue.
Steps to reproduce with first jsfiddle:
Steps to reproduce with second jsfiddle:
Both jQuery and Zepto already do something similar to what I'm proposing. The