[gnome-devel-docs] tutorials hw js: clarified code comments.



commit 7d83ce24b14898913f8913597ca5644090c98b97
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date:   Mon Apr 9 09:41:40 2012 -0400

    tutorials hw js: clarified code comments.

 platform-demos/C/helloWorld.js.page |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/platform-demos/C/helloWorld.js.page b/platform-demos/C/helloWorld.js.page
index f59ab44..ffcf3b1 100644
--- a/platform-demos/C/helloWorld.js.page
+++ b/platform-demos/C/helloWorld.js.page
@@ -33,7 +33,7 @@
     <title>Script for running the application</title>
     <code mime="text/javascript" style="numbered"><![CDATA[
 #!/usr/bin/gjs]]></code>
-    <p>  This needs to be the first line of your script, because it tells GNOME that we'll be using Gjs -- the JavaScript bindings for GNOME -- in order to run it.</p>
+    <p>This needs to be the first line of your script, because it tells GNOME that we'll be using Gjs -- the JavaScript bindings for GNOME -- in order to run it.</p>
   </section>
   
   <section id="imports">
@@ -50,7 +50,7 @@ var Gtk = imports.gi.Gtk;]]></code>
 Gtk.init(null, 0);
 
 // Create your window, name it, and connect the "click x to quit" function.
-// The word "window" all by itself is reserved for use by GNOME, so we have to
+// The word "window" is a JavaScript keyword, so we have to
 // call it something different.
 var mywindow = new Gtk.Window({type: Gtk.WindowType.TOPLEVEL});
 mywindow.title = "Hello World!";
@@ -87,7 +87,7 @@ Gtk.main();]]></code>
 Gtk.init(null, 0);
 
 // Create your window, name it, and connect the "click x to quit" function.
-// The word "window" all by itself is reserved for use by GNOME, so we have to
+// The word "window" is a JavaScript keyword, so we have to
 // call it something different.
 var mywindow = new Gtk.Window({type: Gtk.WindowType.TOPLEVEL});
 mywindow.title = "Hello World!";



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]