comparison demo/increment.ur @ 1784:e6bc6bbd7a32

Update demo code for key/mouse handler change
author Adam Chlipala <adam@chlipala.net>
date Sat, 21 Jul 2012 10:12:35 -0400
parents ed06e25c70ef
children
comparison
equal deleted inserted replaced
1783:5bc4fbf9c0fe 1784:e6bc6bbd7a32
4 4
5 fun main () = 5 fun main () =
6 src <- source 0; 6 src <- source 0;
7 return <xml><body> 7 return <xml><body>
8 <dyn signal={n <- signal src; return <xml>{[n]}</xml>}/> 8 <dyn signal={n <- signal src; return <xml>{[n]}</xml>}/>
9 <button value="Update" onclick={n <- rpc (increment ()); set src n}/> 9 <button value="Update" onclick={fn _ => n <- rpc (increment ()); set src n}/>
10 </body></xml> 10 </body></xml>