[Laszlo-checkins] r12022 - in openlaszlo/trunk/docs/src/developers: . programs

lou@openlaszlo.org lou at openlaszlo.org
Tue Dec 9 05:05:46 PST 2008


Author: lou
Date: 2008-12-09 05:05:09 -0800 (Tue, 09 Dec 2008)
New Revision: 12022

Modified:
   openlaszlo/trunk/docs/src/developers/programs/input-devices-$10.lzx
   openlaszlo/trunk/docs/src/developers/programs/methods-events-attributes-$12.lzx
   openlaszlo/trunk/docs/src/developers/views.dbk
Log:
Change 20081209-lou-K by lou at loumac.local on 2008-12-09 08:53:28 AST
    in /Users/lou/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: dguide: emphasize Debug.debug over Debug.write in examples

Bugs Fixed: LPP-7437 (partial)

Technical Reviewer: tucker
QA Reviewer: (pending)
Doc Reviewer: (pending)

Details: these are minor changes to the checkin described in the previous comment.

The change to the views chapter eliminates a reference to the debugger, which
in no longer used in the example.

Please review this and the changes in the previous comment.
    
Tests: visual verify



Modified: openlaszlo/trunk/docs/src/developers/programs/input-devices-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/input-devices-$10.lzx	2008-12-09 13:05:34 UTC (rev 12021)
+++ openlaszlo/trunk/docs/src/developers/programs/input-devices-$10.lzx	2008-12-09 13:05:09 UTC (rev 12022)
@@ -1,6 +1,5 @@
 <canvas width="100%" height="200" debug="true">
-    <debug x="110" y="15" />
-    
+    <debug x="110" y="15" />   
     <!-- NOTE: Even though the view below takes focus oninit,
         in some browsers you might still need to click on the
         application itself, to take the focus away from the 
@@ -18,11 +17,11 @@
         </handler>     
         <handler name="onkeydown" args="akeycode">
             // respond here    
-            Debug.debug("%w", ("Key pressed: " + akeycode));
+            Debug.debug("Key pressed: %w", akeycode);
             if ( this.keyCodes[akeycode] != undefined ) {
             Debug.debug("%s", this.keyCodes[akeycode] );
             } else {
-            Debug.debug("%w", ("you pressed: " + String.fromCharCode(akeycode)));
+            Debug.debug("You pressed: %w", String.fromCharCode(akeycode));
             }
         </handler>
     </view>

Modified: openlaszlo/trunk/docs/src/developers/programs/methods-events-attributes-$12.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/methods-events-attributes-$12.lzx	2008-12-09 13:05:34 UTC (rev 12021)
+++ openlaszlo/trunk/docs/src/developers/programs/methods-events-attributes-$12.lzx	2008-12-09 13:05:09 UTC (rev 12022)
@@ -1,25 +1,23 @@
-<canvas debug="true" width="100%">
-    <debug />
-    
+<canvas width="100%" debug="true">  
     <class name="myclass_with_handler">
         <event name="myevent"/>
         <handler name="myevent" args="myargs">
-            Debug.debug("%w", (this + 'handling myevent, myargs=' + myargs));
-        </handler>
-        
-        <attribute name="season" type="string" value="spring" />
-        <event name="onseason" />
+            Debug.debug("%#w handling myevent, myargs = %w", this, myargs);
+        </handler>       
+        <attribute name="season" type="string" value="spring"/>
+        <event name="onseason"/>
         <handler name="onseason" args="s">
-            Debug.debug("%w", ("got season of " + s + ", season is " + season));
+            Debug.debug("got season of %w, season is %w", s, season);
         </handler>
-    </class>  
-    <myclass_with_handler id="foo" />   
-    <simplelayout axis="x" spacing="5" /> 
-    <button onclick="foo.myevent.sendEvent(12)" text="send the event" />
-    <button onclick="foo.setAttribute('season', 'fall')" text="autumn" /> 
+    </class>   
+    <myclass_with_handler id="foo"/>
+    <simplelayout axis="x" spacing="5"/>
+    <button onclick="foo.myevent.sendEvent(12)" text="send the event"/>
+    <button onclick="foo.setAttribute('season', 'fall')" text="autumn"/>
+    
     <!-- Don't do this! Setting an attribute directly with '=' shortcuts around
         the event system. This is not right; use setAttribute instead -->
-    <button onclick="foo.season='winter'" text="evil" /> 
+    <button onclick="foo.season='winter'" text="evil"/>
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
 * Copyright 2007, 2008 Laszlo Systems, Inc.  All Rights Reserved.             *

Modified: openlaszlo/trunk/docs/src/developers/views.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/views.dbk	2008-12-09 13:05:34 UTC (rev 12021)
+++ openlaszlo/trunk/docs/src/developers/views.dbk	2008-12-09 13:05:09 UTC (rev 12022)
@@ -341,8 +341,7 @@
 
 
 <para>
-Here we have modified the example to further illustrate the same point.  Notice how the width of the green view, as reported by the
-debugger, does not change, even as the view visibly shrinks.</para>
+Here we have modified the example to further illustrate the same point.  Notice how the width of the green view does not change, even as the view visibly shrinks.</para>
 
 <example role="live-example">
    <title>Simple scaling with text and colored view</title>



More information about the Laszlo-checkins mailing list