jameslnewell / xhr-mock

Utility for mocking XMLHttpRequest.
196 stars 48 forks source link

'self' is undefined in MockXMLHttpRequest.prototype.open #6

Closed prabhg closed 8 years ago

prabhg commented 8 years ago

In MockXMLHttpRequest.prototype.open function, on following line, 'self' needs to be replaced with 'this'.

self.readyState = MockXMLHttpRequest.STATE_OPENED;

jameslnewell commented 8 years ago

Thanks for reporting!

jameslnewell commented 8 years ago

Published in 1.4.1.