summaryrefslogtreecommitdiff
path: root/swat/esptest/registry.esp
diff options
context:
space:
mode:
authorDeryck Hodge <deryck@samba.org>2005-08-16 19:47:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:24 -0500
commita9c00a7a7298d678369fe750aa267de394958955 (patch)
treeb4f719aeb147699cb62e2560b7131103e9f272dd /swat/esptest/registry.esp
parent1e59a8a24f64065b80df73c6770ea573eac05000 (diff)
downloadsamba-a9c00a7a7298d678369fe750aa267de394958955.tar.gz
samba-a9c00a7a7298d678369fe750aa267de394958955.tar.bz2
samba-a9c00a7a7298d678369fe750aa267de394958955.zip
r9327: 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 (This used to be commit 6040f9401eedb195aef160b3b58462a1a6728af7)
Diffstat (limited to 'swat/esptest/registry.esp')
-rw-r--r--swat/esptest/registry.esp26
1 files changed, 13 insertions, 13 deletions
diff --git a/swat/esptest/registry.esp b/swat/esptest/registry.esp
index b02def6f83..14e3173f2d 100644
--- a/swat/esptest/registry.esp
+++ b/swat/esptest/registry.esp
@@ -43,25 +43,25 @@ call.run();
<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);
}
}