From cb728b2f25d8f47f2062607525f5c142b2da63a3 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 12 Feb 2010 16:23:07 +0000 Subject: [PATCH] Addressing https://bugs.launchpad.net/evergreen/+bug/520632 -- not strictly required here, but for(;;) is better form for array access git-svn-id: svn://svn.open-ils.org/ILS/trunk@15519 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js b/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js index 5b81cf30fd..3b6123d81d 100644 --- a/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js +++ b/Open-ILS/web/js/dojo/fieldmapper/OrgUtils.js @@ -37,7 +37,7 @@ if(!dojo._hasResource["fieldmapper.OrgUtils"]){ var types = fieldmapper.standardRequest(['open-ils.actor','open-ils.actor.org_types.retrieve']); - for (var i in types) { + for (var i = 0; i < types.length; i++) { fieldmapper.aout.OrgTypeCache[types[i].id()] = { loaded : true, type : types[i] @@ -63,7 +63,7 @@ if(!dojo._hasResource["fieldmapper.OrgUtils"]){ fieldmapper.aou.findOrgUnit = fieldmapper.aou.LoadOrg; if (window._l) { - for (var i in _l) { + for (var i = 0; i < _l.length; i++) { fieldmapper.aou.OrgCache[_l[i][0]] = { loaded: false, org : new fieldmapper.aou().fromHash({ @@ -91,7 +91,7 @@ if(!dojo._hasResource["fieldmapper.OrgUtils"]){ fieldmapper.aou.OrgCache[x.id()].treePtr = x; } - for (var i in globalOrgTypes) { + for (var i = 0; i < globalOrgTypes.length; i++) { fieldmapper.aout.OrgTypeCache[globalOrgTypes[i].id()] = { loaded : true, type : globalOrgTypes[i] -- 2.11.0