mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
bug 1523104: remote: s/despatch/dispatcher/g; r=ochameau
For the record, this is not a typo.
This commit is contained in:
parent
42e9f6cf8b
commit
1c352d20b9
@ -38,8 +38,8 @@ this.RemoteAgentActorChild = class extends ActorChild {
|
||||
// TODO(ato): This can eventually be replaced by ActorChild and IPDL generation
|
||||
// TODO(ato): Can we find a shorter name?
|
||||
this.MessageChannelActorChild = class extends RemoteAgentActorChild {
|
||||
constructor(despatcher) {
|
||||
super(despatcher);
|
||||
constructor(dispatcher) {
|
||||
super(dispatcher);
|
||||
this.name = `RemoteAgent:${this.constructor.name}`;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ this.Session = class {
|
||||
|
||||
this.domains = new Domains(this);
|
||||
|
||||
this.connection.onmessage = this.despatch.bind(this);
|
||||
this.connection.onmessage = this.dispatch.bind(this);
|
||||
}
|
||||
|
||||
destructor() {
|
||||
@ -25,7 +25,7 @@ this.Session = class {
|
||||
this.domains.clear();
|
||||
}
|
||||
|
||||
async despatch({id, method, params}) {
|
||||
async dispatch({id, method, params}) {
|
||||
try {
|
||||
if (typeof id == "undefined") {
|
||||
throw new TypeError("Message missing 'id' field");
|
||||
|
Loading…
x
Reference in New Issue
Block a user