barneycarroll / mithril.exitable.js

Exit animations for Mithril components: provide controllers with an `exit` hook which will trigger when the component disappears from the virtual DOM (but before it's removed from live DOM), locking the draw process while you perform animations.
MIT License
22 stars 3 forks source link

Doesn't work with `m.component` #7

Closed barneycarroll closed 8 years ago

barneycarroll commented 8 years ago

Mithril consumes m.component and returns fully-formed virtual DOM, meaning Exitable never gets the chance to hook into its controller. More patching needed.