diff --git a/src/absytree_js.nim b/src/absytree_js.nim index 946aa7e1..92ad0612 100644 --- a/src/absytree_js.nim +++ b/src/absytree_js.nim @@ -115,7 +115,7 @@ proc runApp(): Future[void] {.async.} = discard rend.onMouseRelease.subscribe proc(event: auto): void = requestRender() # discard rend.onMouseMove.subscribe proc(event: auto): void = requestRender() discard rend.onScroll.subscribe proc(event: auto): void = requestRender() - discard rend.onCloseRequested.subscribe proc(_: auto) = requestRender() + discard rend.onCloseRequested.subscribe proc() = requestRender() discard rend.onResized.subscribe proc(redrawEverything: bool) = requestRender(redrawEverything) initializedEditor = true diff --git a/src/app.nim b/src/app.nim index 0249e8cb..52414314 100644 --- a/src/app.nim +++ b/src/app.nim @@ -766,7 +766,7 @@ proc newEditor*(backend: api.Backend, platform: Platform, options = AppOptions() discard platform.onMouseMove.subscribe proc(event: auto): void = self.handleMouseMove(event.pos, event.delta, event.modifiers, event.buttons) discard platform.onScroll.subscribe proc(event: auto): void = self.handleScroll(event.scroll, event.pos, event.modifiers) discard platform.onDropFile.subscribe proc(event: auto): void = self.handleDropFile(event.path, event.content) - discard platform.onCloseRequested.subscribe proc(_: auto) = self.closeRequested = true + discard platform.onCloseRequested.subscribe proc() = self.closeRequested = true self.timer = startTimer() self.frameTimer = startTimer() diff --git a/src/platform/browser_platform.nim b/src/platform/browser_platform.nim index 9f6fd7ae..a79b724c 100644 --- a/src/platform/browser_platform.nim +++ b/src/platform/browser_platform.nim @@ -523,7 +523,7 @@ proc drawNode(builder: UINodeBuilder, platform: BrowserPlatform, element: var El childrenToRemove.add oldChildElement elif not childElement.isNil: if childElement.parentElement != element: - newChildren.add (childElement, insertRel, insertNeighbor) + newChildren.add (childElement, insertRel, insertNeighbor.Node) for i in k..