From 21c994d123128f19f057660ee9f36dcf576c3d6e Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 9 Feb 2009 01:05:05 +0000 Subject: [PATCH] init datalist at startup so each successive instance isn't appending to the same array git-svn-id: svn://svn.open-ils.org/ILS/trunk@12111 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/FilteringTreeSelect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/FilteringTreeSelect.js b/Open-ILS/web/js/dojo/openils/widget/FilteringTreeSelect.js index b6f9636f05..6c4e11f97d 100644 --- a/Open-ILS/web/js/dojo/openils/widget/FilteringTreeSelect.js +++ b/Open-ILS/web/js/dojo/openils/widget/FilteringTreeSelect.js @@ -25,7 +25,6 @@ if(!dojo._hasResource["openils.widget.FilteringTreeSelect"]){ labelAttr : 'name', childField : 'children', tree : null, - dataList : [], startup : function() { this.tree = (typeof this.tree == 'string') ? @@ -35,6 +34,7 @@ if(!dojo._hasResource["openils.widget.FilteringTreeSelect"]){ return; } if(!dojo.isArray(this.tree)) this.tree = [this.tree]; + this.dataList = []; var self = this; this.tree.forEach(function(node) { self._makeNodeList(node); }); this.store = new dojo.data.ItemFileReadStore( -- 2.11.0