diff togglePanel.ur @ 31:b5432d74841a

Update for key/mouse handler change
author Adam Chlipala <adam@chlipala.net>
date Sat, 21 Jul 2012 10:15:14 -0400
parents 7d0014542199
children
line wrap: on
line diff
--- a/togglePanel.ur	Sat May 12 10:07:45 2012 -0400
+++ b/togglePanel.ur	Sat Jul 21 10:15:14 2012 -0400
@@ -9,8 +9,8 @@
 
 val defaultFormat [[Dyn] ~ body'] =
     {FormatPanel = fn ctl panel => <xml>{ctl}{panel}</xml>,
-     OpenCtl = fn behaviour => <xml><button value="Open" onclick={behaviour}/></xml>,
-     CloseCtl = fn behaviour => <xml><button value="Close" onclick={behaviour}/></xml>}
+     OpenCtl = fn behaviour => <xml><button value="Open" onclick={fn _ => behaviour}/></xml>,
+     CloseCtl = fn behaviour => <xml><button value="Close" onclick={fn _ => behaviour}/></xml>}
                     
 con togglePanel t ctx = {PanelState : source panelState,
                          FormatCtl : formatCtl ctx,