ソースを参照

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

Correctly subclass JingleSession
dev1
lyubomir 9年前
コミット
b710c6df76
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      modules/xmpp/JingleSessionPC.js

+ 2
- 2
modules/xmpp/JingleSessionPC.js ファイルの表示

56
     // stable and the ice connection state is connected.
56
     // stable and the ice connection state is connected.
57
     this.modifySourcesQueue.pause();
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
 JingleSessionPC.prototype.constructor = JingleSessionPC;
61
 JingleSessionPC.prototype.constructor = JingleSessionPC;
62
 
62
 
63
 
63
 

読み込み中…
キャンセル
保存