Skip to content

Commit

Permalink
Dialog constructor: owner.emit('dialog', this);
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-onsip committed Dec 10, 2014
1 parent 4988b81 commit a65fde7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Dialog = function(owner, message, type, state) {
this.owner = owner;
owner.ua.dialogs[this.id.toString()] = this;
this.logger.log('new ' + type + ' dialog created with status ' + (this.state === C.STATUS_EARLY ? 'EARLY': 'CONFIRMED'));
owner.emit('dialog', this);
};

Dialog.prototype = {
Expand Down

0 comments on commit a65fde7

Please sign in to comment.