Fixing scope issue

This commit is contained in:
Dennis Eichhorn 2016-07-02 20:18:32 +02:00
parent 86d715b4e6
commit acf6632fa5

View File

@ -363,7 +363,7 @@
{
switch (self.xhr.readyState) {
case 4:
if (typeof this.result[self.xhr.status] === 'undefined') {
if (typeof self.result[self.xhr.status] === 'undefined') {
self.result[0](self.xhr);
} else {
self.result[self.xhr.status](self.xhr);