File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ object RTCConfiguration {
3131 peerIdentity : js.UndefOr [String ] = js.undefined): RTCConfiguration = {
3232 val result = js.Dynamic .literal()
3333 iceServers.foreach(result.iceServers = _)
34- iceTransportPolicy.map(_. asInstanceOf [js. Any ]). foreach(result.iceTransportPolicy = _ )
35- bundlePolicy.map(_. asInstanceOf [js. Any ]). foreach(result.bundlePolicy = _ )
36- peerIdentity.map(_. asInstanceOf [js. Any ]). foreach(result.peerIdentity = _ )
34+ iceTransportPolicy.foreach(x => result.iceTransportPolicy = x. asInstanceOf [js. Any ] )
35+ bundlePolicy.foreach(x => result.bundlePolicy = x. asInstanceOf [js. Any ] )
36+ peerIdentity.foreach(x => result.peerIdentity = x. asInstanceOf [js. Any ] )
3737 result.asInstanceOf [RTCConfiguration ]
3838 }
3939}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ object RTCSessionDescriptionInit {
1616 def apply (`type` : js.UndefOr [RTCSdpType ] = js.undefined,
1717 sdp : js.UndefOr [String ] = js.undefined): RTCSessionDescriptionInit = {
1818 val result = js.Dynamic .literal()
19- `type`.map(_. asInstanceOf [js. Any ]). foreach(result.`type` = _ )
19+ `type`.foreach(x => result.`type` = x. asInstanceOf [js. Any ] )
2020 sdp.foreach(result.sdp = _)
2121 result.asInstanceOf [RTCSessionDescriptionInit ]
2222 }
You can’t perform that action at this time.
0 commit comments