Created
December 4, 2009 00:27
-
-
Save dublindan/248721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(run-components | |
(make-component "Comp1" | |
{:init (fn [v s] | |
(event :print nil) | |
(event :set-msg "Ho") | |
(event :print nil) | |
{:msg "Hi"}) | |
:print (fn [v s] | |
(println (:msg s))) | |
:set-msg (fn [v s] | |
{:msg v})}) | |
(make-component "Comp2" | |
{:init (fn [v s] | |
{:msg "Hello"}) | |
:print (fn [v s] | |
(println (:msg s)))})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment