diff tests/dynClass.ur @ 2012:2b2d07946e65

Fix dynClass for non-<body> contexts
author Adam Chlipala <adam@chlipala.net>
date Sun, 04 May 2014 12:33:44 -0400
parents acadf9d1214a
children
line wrap: on
line diff
--- a/tests/dynClass.ur	Sat May 03 07:59:45 2014 -0400
+++ b/tests/dynClass.ur	Sun May 04 12:33:44 2014 -0400
@@ -15,7 +15,7 @@
                                       STYLE "width: 500px"
                                   else
                                       STYLE "width: 200px")}
-                onclick={b <- get toggle; set toggle (not b)}/>
+                onclick={fn _ => b <- get toggle; set toggle (not b)}/>
 
         <button dynStyle={b <- signal toggle;
                           return (if b then