From a1a1dbe2db7afb12c4a25a3a73b902112a4feab8 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Wed, 29 Jun 2011 17:34:12 -0400 Subject: [PATCH] more descriptions --- scribblings/manual.scrbl | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/scribblings/manual.scrbl b/scribblings/manual.scrbl index a5bf048..25d82e0 100644 --- a/scribblings/manual.scrbl +++ b/scribblings/manual.scrbl @@ -397,9 +397,20 @@ language. The bindings here might relocate! -@defform[(in-javascript-context? ...)]{} -@defform[(viewport-width)]{} -@defform[(viewport-height)]{} +@defproc[(in-javascript-context?) boolean]{Returns true if the running context +supports JavaScript-specific functions.} + +@defform[(viewport-width)]{ +Can only be called in a JavaScript context. + +Returns wthe width of the viewport. +} + +@defform[(viewport-height)]{ +Can only be called in a JavaScript context. + +Returns the height of the viewport. +}