Change return type from sending messages
Pass the whole result from the outgoing message callback on to the caller, and preserve the names of the members. // FREEBIE
This commit is contained in:
parent
7b6820d2ac
commit
5c37c3d6ce
4 changed files with 15 additions and 15 deletions
|
@ -19,7 +19,7 @@ OutgoingMessage.prototype = {
|
|||
numberCompleted: function() {
|
||||
this.numbersCompleted++;
|
||||
if (this.numbersCompleted >= this.numbers.length) {
|
||||
this.callback({success: this.successfulNumbers, failure: this.errors});
|
||||
this.callback({successfulNumbers: this.successfulNumbers, errors: this.errors});
|
||||
}
|
||||
},
|
||||
registerError: function(number, reason, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue