From dabc2963fb8d6d9f45ffd1ca6cc76a6b28fa074c Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 28 Jun 2005 15:53:22 +0000 Subject: [PATCH] ooh, i = i. Nice. Also tend to do this a lot: node[i] instead of node.childNodes[i] git-svn-id: svn://svn.open-ils.org/ILS/trunk@949 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Evergreen/staff_client/chrome/content/evergreen/util/util.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Evergreen/staff_client/chrome/content/evergreen/util/util.js b/Evergreen/staff_client/chrome/content/evergreen/util/util.js index 35408e5d54..b4e456e5ac 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/util/util.js +++ b/Evergreen/staff_client/chrome/content/evergreen/util/util.js @@ -6,13 +6,19 @@ var counter = {}; function getString( key ) { var s = ''; var bundles = document.getElementById('string_bundles'); - for (var i = i; i < bundles.childNodes.length; i++) { - var bundle = bundles[i]; + sdump('D_STRING','bundles = ' + bundles + ' bundles.childNodes.length = ' + bundles.childNodes.length + '\n'); + for (var i = 0; i < bundles.childNodes.length; i++) { + var bundle = bundles.childNodes[i]; + sdump('D_STRING','\ttrying bundle = ' + bundle + '\n'); try { var string = bundle.getString( key ); - if (string) + if (string) { s = string; + sdump('D_STRING','\tfound\n'); + } else { + sdump('D_STRING','\tnot found\n'); + } } catch(E) { dump(E + '\n'); -- 2.11.0