srcElement is not defined in FF?

This commit is contained in:
Philipp Hancke 2014-04-07 15:29:30 +02:00
parent cb5df3be84
commit a7e162b002
1 changed files with 3 additions and 3 deletions

View File

@ -63,14 +63,14 @@ function TraceablePeerConnection(ice_config, constraints) {
};
this.onsignalingstatechange = null;
this.peerconnection.onsignalingstatechange = function (event) {
self.trace('onsignalingstatechange', event.srcElement.signalingState);
self.trace('onsignalingstatechange', self.signalingState);
if (self.onsignalingstatechange !== null) {
self.onsignalingstatechange(event);
}
};
this.oniceconnectionstatechange = null;
this.peerconnection.oniceconnectionstatechange = function (event) {
self.trace('oniceconnectionstatechange', event.srcElement.iceConnectionState);
self.trace('oniceconnectionstatechange', self.iceConnectionState);
if (self.oniceconnectionstatechange !== null) {
self.oniceconnectionstatechange(event);
}