Issue with xhr.js
|Reported by:||Sabran||Owned by:||gibson042|
I’m trying to use the latest version of jQuery and the latest version of jquery.signalR. I’m running into a problem in IE9 specifically. On window.unload, signalR is firing off an AJAX request. This fails in jquery with the error: Unable to set value of the property 'x': object is null or undefined. The ‘x’ is actually a number, but it varies.
I’ve traced the issue down to line 104 in xhr.js:
callback = xhrCallbacks[( id = xhrId++ )] = callback("abort");
The problem is that xhrCallbacks is undefined at the time of this call. The reason it is undefined is because earlier, on line 32, it is explicitly set to undefined on the window.unload event.