From f7167bf7dae9e265d87285b0168e603511025a2a Mon Sep 17 00:00:00 2001
From: guy <guy@finereport.com>
Date: Mon, 19 Jun 2017 15:35:12 +0800
Subject: [PATCH] add

---
 bi/widget.js                                               | 7 ++++---
 docs/widget.js                                             | 7 ++++---
 .../treevaluechooser/abstract.treevaluechooser.js          | 7 ++++---
 3 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/bi/widget.js b/bi/widget.js
index 65d1aa25a..2d540f509 100644
--- a/bi/widget.js
+++ b/bi/widget.js
@@ -17421,7 +17421,7 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree
         function expandSelectedValue(selectedValues, parents, notSelectedValue) {
             var next = selectedValues;
             //去掉点击的节点之后的结果集
-            BI.each(parents, function (i, v) {
+            BI.some(parents, function (i, v) {
                 var t = next[v];
                 if (t == null) {
                     if (BI.isEmpty(next)) {
@@ -17435,8 +17435,9 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree
                         });
                         next = next[v];
                     } else {
-                        next = {};
-                        next[v] = {};
+                        return true;
+                        // next = {};
+                        // next[v] = {};
                     }
                 } else {
                     next = t;
diff --git a/docs/widget.js b/docs/widget.js
index 65d1aa25a..2d540f509 100644
--- a/docs/widget.js
+++ b/docs/widget.js
@@ -17421,7 +17421,7 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree
         function expandSelectedValue(selectedValues, parents, notSelectedValue) {
             var next = selectedValues;
             //去掉点击的节点之后的结果集
-            BI.each(parents, function (i, v) {
+            BI.some(parents, function (i, v) {
                 var t = next[v];
                 if (t == null) {
                     if (BI.isEmpty(next)) {
@@ -17435,8 +17435,9 @@ BI.shortcut('bi.all_value_chooser_pane', BI.AllValueChooserPane);BI.AbstractTree
                         });
                         next = next[v];
                     } else {
-                        next = {};
-                        next[v] = {};
+                        return true;
+                        // next = {};
+                        // next[v] = {};
                     }
                 } else {
                     next = t;
diff --git a/src/component/treevaluechooser/abstract.treevaluechooser.js b/src/component/treevaluechooser/abstract.treevaluechooser.js
index b600f60d6..4da592491 100644
--- a/src/component/treevaluechooser/abstract.treevaluechooser.js
+++ b/src/component/treevaluechooser/abstract.treevaluechooser.js
@@ -182,7 +182,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
         function expandSelectedValue(selectedValues, parents, notSelectedValue) {
             var next = selectedValues;
             //去掉点击的节点之后的结果集
-            BI.each(parents, function (i, v) {
+            BI.some(parents, function (i, v) {
                 var t = next[v];
                 if (t == null) {
                     if (BI.isEmpty(next)) {
@@ -196,8 +196,9 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
                         });
                         next = next[v];
                     } else {
-                        next = {};
-                        next[v] = {};
+                        return true;
+                        // next = {};
+                        // next[v] = {};
                     }
                 } else {
                     next = t;