Browse Source

Merge pull request #115 from legastero/fix-jingle-inheritance

Correctly subclass JingleSession
master
lyubomir 9 years ago
parent
commit
b710c6df76
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/xmpp/JingleSessionPC.js

+ 2
- 2
modules/xmpp/JingleSessionPC.js View File

@@ -56,8 +56,8 @@ function JingleSessionPC(me, sid, peerjid, connection,
56 56
     // stable and the ice connection state is connected.
57 57
     this.modifySourcesQueue.pause();
58 58
 }
59
-//XXX this is badly broken...
60
-JingleSessionPC.prototype = JingleSession.prototype;
59
+
60
+JingleSessionPC.prototype = Object.create(JingleSession.prototype);
61 61
 JingleSessionPC.prototype.constructor = JingleSessionPC;
62 62
 
63 63
 

Loading…
Cancel
Save