[open-ils-commits] r11724 - trunk/Open-ILS/xul/staff_client/chrome/content/util

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jan 2 13:17:04 EST 2009


Author: phasefx
Date: 2009-01-02 13:17:01 -0500 (Fri, 02 Jan 2009)
New Revision: 11724

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/util/functional.js
Log:
if this breaks anything, we can change the broken code to call .find_object instead

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/functional.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/functional.js	2009-01-02 17:47:31 UTC (rev 11723)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/functional.js	2009-01-02 18:17:01 UTC (rev 11724)
@@ -29,7 +29,7 @@
 }
 
 util.functional.find_list = function(list,f) {
-	for (var i in list) {
+	for (var i = 0; i < list.length; i++) {
 		var t = f( list[i] );
 		if (t) return list[i];
 	}



More information about the open-ils-commits mailing list