You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The newest version of virtual-dom supports event handling using dom-delegator library. Here is a nice writeup on the inner-working of virtual-dom and dom-delegator which is used in the mercury MVC framework : Raynos/mercury#151
now ghcjs-dom-delegator has a working example (very trivial though). dom-delegator uses a global singleton Delegator. In javascript virtual-dom, h function of virtual-hyperscript automatically registers ev-blah properties as blah event handler using the global Delegator singleton. Since ghcjs-vdom does not use virtual-hyperscript, we had better have our own similar function hook. I am going to make that extension now.
The newest version of
virtual-dom
supports event handling using dom-delegator library. Here is a nice writeup on the inner-working ofvirtual-dom
anddom-delegator
which is used in themercury
MVC framework : Raynos/mercury#151I started implementing FFI binding to
dom-delegator
in http://github.com/wavewave/ghcjs-dom-delegatorI will keep my progress posted here.
The text was updated successfully, but these errors were encountered: