From 7b4b8cdabecf88e60640aa441e2ea6d12daa850d Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Mon, 29 Aug 2011 10:25:23 -0400 Subject: [PATCH 1/2] fixing name of the event --- scribblings/cs19.scrbl | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/scribblings/cs19.scrbl b/scribblings/cs19.scrbl index e7f1ece..7bd9171 100644 --- a/scribblings/cs19.scrbl +++ b/scribblings/cs19.scrbl @@ -48,16 +48,20 @@ programs to standalone @filepath{.xhtml} files. Example usage: using @litchar{whalesong build} to compile a whalesong program. @verbatim|{ -fermi ~/work/whalesong $ cd examples -fermi ~/work/whalesong/examples $ cat hello.rkt +fermi ~/whalesong $ cd examples + +fermi ~/whalesong/examples $ cat hello.rkt #lang planet dyoo/whalesong (display "hello world") (newline) -fermi ~/work/whalesong/examples $ ../whalesong build hello.rkt -fermi ~/work/whalesong/examples $ google-chrome hello.xhtml + +fermi ~/whalesong/examples $ ../whalesong build hello.rkt + +fermi ~/whalesong/examples $ google-chrome hello.xhtml Created new window in existing browser session. -fermi ~/work/whalesong/examples $ + +fermi ~/whalesong/examples $ }| @@ -134,10 +138,12 @@ Get the textual content at the focus. Update the textual content at the focus.} @defproc[(view-bind [v view] [type string] [world-updater ([w world] [v view] -> world)]) view]{ -Attach a world-updating event to the focus. -Common event types include @racket["click"], @racket["trigger"], -@racket["hover"].} +Attach a world-updating event to the focus. When the world-updater is +called, the view will be focused on the element that triggered the +event. + +Common event types include @racket["click"], @racket["hover"], @racket["change"].} @defproc[(view-show [v view]) view]{ Show the element at the focus. From 8bcc35888984ae078b7b2d42823d001ad685c084 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Mon, 29 Aug 2011 13:07:51 -0400 Subject: [PATCH 2/2] fixing docs --- scribblings/cs19.scrbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scribblings/cs19.scrbl b/scribblings/cs19.scrbl index a37733f..65fb14e 100644 --- a/scribblings/cs19.scrbl +++ b/scribblings/cs19.scrbl @@ -175,7 +175,7 @@ Attach a world-updating event to the focus. When the world-updater is called, the view will be focused on the element that triggered the event. -Common event types include @racket["click"], @racket["hover"], @racket["change"].} +Common event types include @racket["click"], @racket["mouseenter"], @racket["change"].} @defproc[(view-show [v view]) view]{ Show the element at the focus.