Guard against Webkit's extraneous calls to xhr.onreadystatechange #633

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Diff settings

Always

Just for now

View
@@ -195,6 +195,7 @@
xhr.onreadystatechange = function(){
if (xhr.readyState == 4) {
+ xhr.onreadystatechange = empty;
clearTimeout(abortTimeout)
var result, error = false
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304 || (xhr.status == 0 && protocol == 'file:')) {