Author: deryck
Date: 2005-08-16 19:47:27 +0000 (Tue, 16 Aug 2005)
New Revision: 9327

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9327

Log:
Rename parent to fParent to prevent confusion with window.parent object.
(Thanks, Derrell, for the reminder.)
Rename child to fChild, to be consistent and maintain readability.

deryck

Modified:
   branches/SAMBA_4_0/swat/esptest/registry.esp


Changeset:
Modified: branches/SAMBA_4_0/swat/esptest/registry.esp
===================================================================
--- branches/SAMBA_4_0/swat/esptest/registry.esp        2005-08-16 19:40:17 UTC 
(rev 9326)
+++ branches/SAMBA_4_0/swat/esptest/registry.esp        2005-08-16 19:47:27 UTC 
(rev 9327)
@@ -43,25 +43,25 @@
 
   <script type="text/javascript">
 
-function folder_list(parent, list) {
+function folder_list(fParent, list) {
        var i;
-       parent.populated = true;
-       parent.removeAll();
+       fParent.populated = true;
+       fParent.removeAll();
        for (i=0;i<list.length;i++) {
-               var child;
-               child = new QxTreeFolder(list[i]);
-               parent.add(child);
-               child.binding = parent.binding;
-               if (parent.reg_path == '\\\\') {
-                       child.reg_path = list[i];
+               var fChild;
+               fChild = new QxTreeFolder(list[i]);
+               fParent.add(fChild);
+               fChild.binding = fParent.binding;
+               if (fParent.reg_path == '\\\\') {
+                       fChild.reg_path = list[i];
                } else {
-                       child.reg_path = parent.reg_path + '\\\\' + list[i];
+                       fChild.reg_path = fParent.reg_path + '\\\\' + list[i];
                }
-               child.add(new QxTreeFolder('Working ...'));
-               child.addEventListener("click", function() { 
+               fChild.add(new QxTreeFolder('Working ...'));
+               fChild.addEventListener("click", function() { 
                        var el = this; folder_click(el); 
                });
-               parent.setOpen(1);
+               fParent.setOpen(1);
        }
 }
 

Reply via email to