Browse Source

Merge pull request #480 from ibc/fix-overridden-code-TraceablePeerConnection

Remove overridden assignment in TraceablePeerConnection.js (fixes #471)
tags/v0.0.2
Saúl Ibarra Corretgé 7 years ago
parent
commit
2dd3ff230c
1 changed files with 0 additions and 14 deletions
  1. 0
    14
      modules/RTC/TraceablePeerConnection.js

+ 0
- 14
modules/RTC/TraceablePeerConnection.js View File

@@ -214,20 +214,6 @@ export default function TraceablePeerConnection(
214 214
             this.onicecandidate(event);
215 215
         }
216 216
     };
217
-    this.onaddstream = null;
218
-    this.peerconnection.onaddstream = event => {
219
-        this.trace('onaddstream', event.stream.id);
220
-        if (this.onaddstream !== null) {
221
-            this.onaddstream(event);
222
-        }
223
-    };
224
-    this.onremovestream = null;
225
-    this.peerconnection.onremovestream = event => {
226
-        this.trace('onremovestream', event.stream.id);
227
-        if (this.onremovestream !== null) {
228
-            this.onremovestream(event);
229
-        }
230
-    };
231 217
     this.peerconnection.onaddstream
232 218
         = event => this._remoteStreamAdded(event.stream);
233 219
     this.peerconnection.onremovestream

Loading…
Cancel
Save