Open jhamfler opened 9 years ago
eventhandler functions this.RTCPeerConnection.on****statechange in Participant.js can be optimized by using/reading evt.type in called functions instead of a static string
this.RTCPeerConnection.on****statechange
evt.type
one example occurence:
use the callstack msc's in Wonder Alalyse - C.3 Alice ruft Bob an (Sicht von Alice) - Teil 2-n to figure out which functions need to be adjusted
OK, agree --> less chances for typos. The "on****statechange" strings seem to relate 1:1 to the evt.types, right?
Yes, every type had the same name as the static string.
eventhandler functions
this.RTCPeerConnection.on****statechange
in Participant.js can be optimized by using/readingevt.type
in called functions instead of a static stringone example occurence:
use the callstack msc's in Wonder Alalyse - C.3 Alice ruft Bob an (Sicht von Alice) - Teil 2-n to figure out which functions need to be adjusted