[open-ils-commits] r15515 - trunk/Open-ILS/web/js/dojo/openils/widget (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Feb 12 11:11:00 EST 2010


Author: miker
Date: 2010-02-12 11:10:57 -0500 (Fri, 12 Feb 2010)
New Revision: 15515

Modified:
   trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js
Log:
Addressing https://bugs.launchpad.net/evergreen/+bug/520632 -- not strictly required here, but for(;;) is better form for array access

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js	2010-02-12 16:06:19 UTC (rev 15514)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js	2010-02-12 16:10:57 UTC (rev 15515)
@@ -82,7 +82,7 @@
 				// Empty it
 				while (trans_tbody.lastChild) trans_tbody.removeChild( trans_tbody.lastChild );
 		
-				for (var i in trans_list) {
+				for (var i = 0; i < trans_list.length; i++) {
 					if (!trans_list[i]) continue;
 		
 					var trans_obj = trans_list[i];



More information about the open-ils-commits mailing list