threepenny-gui 0.6.0.2 → 0.6.0.3
raw patch · 3 files changed
+9/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- src/Graphics/UI/Threepenny/Internal.hs +4/−1
- threepenny-gui.cabal +1/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ ## Changelog for the `threepenny-gui` package +**0.6.0.3** -- Maintenance release.++* Temporary fix for #109, which was causing event handlers to be discarded. Unfortunately, this means that elements are currently not garbage collected after they have been removed from the DOM tree.+ **0.6.0.2** -- Maintenance release. * Remove unused direct dependencies, in particular
src/Graphics/UI/Threepenny/Internal.hs view
@@ -179,7 +179,10 @@ clearChildren :: Element -> UI () clearChildren (Element el _ _) = liftJSWindow $ \w -> do Foreign.withRemotePtr el $ \_ _ -> do- Foreign.clearReachable el+ -- FIXME: Not all reachable foreign pointers are actually elements!+ -- Some may also be event handlers and so on!+ -- Temporarily disable garbage collection.+ -- Foreign.clearReachable el JS.runFunction w $ ffi "$(%1).contents().detach()" el -- | Append a child element.
threepenny-gui.cabal view
@@ -1,5 +1,5 @@ Name: threepenny-gui-Version: 0.6.0.2+Version: 0.6.0.3 Synopsis: GUI framework that uses the web browser as a display. Description: Threepenny-GUI is a GUI framework that uses the web browser as a display.