[gnome-devel-docs] tutorials <javascript>: Replaces global variable with local one in treeview sample



commit 59d351019c4dac14740c1faf6380a492c7fd5def
Author: Taryn Fox <jewelfox fursona net>
Date:   Thu Jul 19 07:26:01 2012 -0400

    tutorials <javascript>: Replaces global variable with local one in treeview sample

 .../C/samples/treeview_simple_liststore.js         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/samples/treeview_simple_liststore.js b/platform-demos/C/samples/treeview_simple_liststore.js
index f9c87e2..086b536 100644
--- a/platform-demos/C/samples/treeview_simple_liststore.js
+++ b/platform-demos/C/samples/treeview_simple_liststore.js
@@ -67,7 +67,7 @@ const TreeViewExample = new Lang.Class({
                 description: "Very random!"}];
 
         // Put the data in the phonebook
-        for (i = 0; i < phonebook.length; i++ ) {
+        for (let i = 0; i < phonebook.length; i++ ) {
             let contact = phonebook [i];
             this._listStore.set (this._listStore.append(), [0, 1, 2, 3],
                 [contact.name, contact.surname, contact.phone, contact.description]);



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