[open-ils-commits] r11916 - trunk/Open-ILS/xul/staff_client/chrome/content/util
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 22 15:48:11 EST 2009
Author: phasefx
Date: 2009-01-22 15:48:07 -0500 (Thu, 22 Jan 2009)
New Revision: 11916
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/functional.js
Log:
treat a list like a list here, just to be safer
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-22 19:57:34 UTC (rev 11915)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/functional.js 2009-01-22 20:48:07 UTC (rev 11916)
@@ -12,7 +12,7 @@
util.functional.filter_list = function(list,f) {
var new_list = [];
- for (var i in list) {
+ for (var i = 0; i < list.length; i++) {
var t = f( list[i] );
if (t) new_list.push( list[i] );
}
More information about the open-ils-commits
mailing list