| Index: lib/compat.js |
| =================================================================== |
| --- a/lib/compat.js |
| +++ b/lib/compat.js |
| @@ -320,17 +320,17 @@ |
| this.readyState = 4; |
| // Notify event listeners |
| const NS_OK = 0; |
| var eventName = (this.channel.status == NS_OK ? "load" : "error"); |
| var event = {type: eventName}; |
| if (this["on" + eventName]) |
| - this.onload.call(this, event); |
| + this["on" + eventName].call(this, event); |
| var list = this["_" + eventName + "Handlers"]; |
| for (var i = 0; i < list.length; i++) |
| list[i].call(this, event); |
| }.bind(this); |
| // HACK (#5066): the code checking whether the connection is allowed is temporary, |
| // the actual check should be in the core when we make a decision whether |
| // to update a subscription with current connection or not, thus whether to |