MessageReceiver: Log empty event, flow promise properly
FREEBIE
This commit is contained in:
parent
32e12f7d3c
commit
7d4ae63501
2 changed files with 4 additions and 2 deletions
|
@ -38370,6 +38370,7 @@ MessageReceiver.prototype.extend({
|
|||
this.incoming = [];
|
||||
|
||||
var dispatchEmpty = function() {
|
||||
console.log('MessageReceiver: emitting \'empty\' event');
|
||||
var ev = new Event('empty');
|
||||
return this.dispatchAndWait(ev);
|
||||
}.bind(this);
|
||||
|
@ -38681,7 +38682,7 @@ MessageReceiver.prototype.extend({
|
|||
},
|
||||
handleContentMessage: function (envelope) {
|
||||
return this.decrypt(envelope, envelope.content).then(function(plaintext) {
|
||||
this.innerHandleContentMessage(envelope, plaintext);
|
||||
return this.innerHandleContentMessage(envelope, plaintext);
|
||||
}.bind(this));
|
||||
},
|
||||
innerHandleContentMessage: function(envelope, plaintext) {
|
||||
|
|
|
@ -128,6 +128,7 @@ MessageReceiver.prototype.extend({
|
|||
this.incoming = [];
|
||||
|
||||
var dispatchEmpty = function() {
|
||||
console.log('MessageReceiver: emitting \'empty\' event');
|
||||
var ev = new Event('empty');
|
||||
return this.dispatchAndWait(ev);
|
||||
}.bind(this);
|
||||
|
@ -439,7 +440,7 @@ MessageReceiver.prototype.extend({
|
|||
},
|
||||
handleContentMessage: function (envelope) {
|
||||
return this.decrypt(envelope, envelope.content).then(function(plaintext) {
|
||||
this.innerHandleContentMessage(envelope, plaintext);
|
||||
return this.innerHandleContentMessage(envelope, plaintext);
|
||||
}.bind(this));
|
||||
},
|
||||
innerHandleContentMessage: function(envelope, plaintext) {
|
||||
|
|
Loading…
Add table
Reference in a new issue