Skip to content

Commit

Permalink
Update record syntax in examples (#608)
Browse files Browse the repository at this point in the history
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
  • Loading branch information
nilslindemann and Sija authored May 27, 2023
1 parent 2a4cffc commit 24b1e67
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions core/source/Dom.mint
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ module Dom {
Returns the dimensions (BoundingClientRect) of a `Dom.Element`
Dom.getDimensions(Dom.createElement("div")) = {
bottom = 0,
height = 0,
width = 0,
right = 0,
left = 0,
top = 0,
x = 0,
y = 0
bottom: 0,
height: 0,
width: 0,
right: 0,
left: 0,
top: 0,
x: 0,
y: 0
}
*/
fun getDimensions (dom : Dom.Element) : Dom.Dimensions {
Expand Down
12 changes: 6 additions & 6 deletions core/source/WebSocket.mint
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ module WebSocket {
websocket =
WebSocket.open({
url = "wss://echo.websocket.org",
reconnectOnClose = true,
onMessage = handleMessage,
onError = handleError,
onClose = handleClose,
onOpen = handleOpen
url: "wss://echo.websocket.org",
reconnectOnClose: true,
onMessage: handleMessage,
onError: handleError,
onClose: handleClose,
onOpen: handleOpen
})
If `reconnectOnClose` is set then when a connection is closed it tries to
Expand Down

0 comments on commit 24b1e67

Please sign in to comment.