File tree 2 files changed +4
-4
lines changed
src/main/scala/org/scalajs/dom
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ object RTCConfiguration {
31
31
peerIdentity : js.UndefOr [String ] = js.undefined): RTCConfiguration = {
32
32
val result = js.Dynamic .literal()
33
33
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 ] )
37
37
result.asInstanceOf [RTCConfiguration ]
38
38
}
39
39
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ object RTCSessionDescriptionInit {
16
16
def apply (`type` : js.UndefOr [RTCSdpType ] = js.undefined,
17
17
sdp : js.UndefOr [String ] = js.undefined): RTCSessionDescriptionInit = {
18
18
val result = js.Dynamic .literal()
19
- `type`.map(_. asInstanceOf [js. Any ]). foreach(result.`type` = _ )
19
+ `type`.foreach(x => result.`type` = x. asInstanceOf [js. Any ] )
20
20
sdp.foreach(result.sdp = _)
21
21
result.asInstanceOf [RTCSessionDescriptionInit ]
22
22
}
You can’t perform that action at this time.
0 commit comments