From 17f81ecc31bf7abac0f6285c6e62e734d33eecb7 Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 13 Jan 2016 10:50:18 -0600 Subject: [PATCH] Fixes TypeError not a function. --- modules/RTC/DataChannels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/RTC/DataChannels.js b/modules/RTC/DataChannels.js index 81aac2351..aaeed319f 100644 --- a/modules/RTC/DataChannels.js +++ b/modules/RTC/DataChannels.js @@ -67,7 +67,7 @@ DataChannels.prototype.onDataChannel = function (event) { // selections so that it can do adaptive simulcast, // we want the notification to trigger even if userJid is undefined, // or null. - this.handleSelectedEndpointEvent(this.lastSelectedEndpoint); + self.handleSelectedEndpointEvent(self.lastSelectedEndpoint); }; dataChannel.onerror = function (error) {