Call onreadystatechange in handler

This commit is contained in:
impinball 2015-12-16 13:38:09 -05:00
parent c21566366e
commit 11f05e3180
3 changed files with 4 additions and 6 deletions

View file

@ -232,6 +232,7 @@ this.mock = (function (global) {
this.responseText = JSON.stringify(data)
this.readyState = 4
this.status = status || 200
this.onreadystatechange()
return this
}