node-XMLHttpRequest
node-XMLHttpRequest copied to clipboard
Why are all events null ??
The offending code:
listeners[event][i].call(self)
does not send any event. The result is, any code like
var request = new XMLHttpRequest();
request.open( 'GET', url, true );
request.addEventListener( 'load', function ( event ) {
var response = event.target.response;
throws up.
so far had to use patched copy with
listeners[event][i].call(self, { target: { response: self.responseText } });
but please make the proper fix 😭