Skip to content

Commit 684adcf

Browse files
authored
Compatible emit for ringing and addChannel
otalk#30
1 parent 2331264 commit 684adcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Object.defineProperties(MediaSession.prototype, {
8282
set: function (value) {
8383
if (value !== this._ringing) {
8484
this._ringing = value;
85-
this.emit('change:ringing', value);
85+
this.emit('change:ringing', this, value);
8686
}
8787
}
8888
},
@@ -661,7 +661,7 @@ MediaSession.prototype = extend(MediaSession.prototype, {
661661
// DataChannels
662662
// ----------------------------------------------------------------
663663
onAddChannel: function (channel) {
664-
this.emit('addChannel', channel);
664+
this.emit('addChannel', this, channel);
665665
}
666666
});
667667

0 commit comments

Comments
 (0)