changeset 796:0b1764cd53b0

Fix missed naming for variables
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 31 Aug 2010 10:13:03 +0800
parents 46a4cd4d382b
children 891bbaca1d8f
files nodejs/phone.js
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/phone.js	Tue Aug 31 10:04:15 2010 +0800
+++ b/nodejs/phone.js	Tue Aug 31 10:13:03 2010 +0800
@@ -11,9 +11,9 @@
 var r, c;
 var mbname;
 
-for(r = 0; r < 4; r++) {
-    for(c = 0; c < 5; c++) {
-	mbname = "icon" + r + "" + c;
+for(c = 0; c < 4; c++) {	// 4 columns
+    for(r = 0; r < 5; r++) {	// 5 rows
+	mbname = "icon" + c + "" + r;
 	icons.push(app.get(mbname));
     }
 }