IE does not yet support Array.forEach ... so we fake it with dojo
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Feb 2009 03:34:12 +0000 (03:34 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Feb 2009 03:34:12 +0000 (03:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12112 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/FilteringTreeSelect.js

index 6c4e11f..3bbe94d 100644 (file)
@@ -36,7 +36,7 @@ if(!dojo._hasResource["openils.widget.FilteringTreeSelect"]){
                 if(!dojo.isArray(this.tree)) this.tree = [this.tree];
                 this.dataList = [];
                 var self = this;
-                this.tree.forEach(function(node) { self._makeNodeList(node); });
+                dojo.forEach(this.tree, function(node) { self._makeNodeList(node); });
                 this.store = new dojo.data.ItemFileReadStore(
                     {data:fieldmapper[this.dataList[0].classname].toStoreData(this.dataList)});
                 this.inherited(arguments);