From 5193735a406e3f9515aa1da2ff6e3c3c6a8e837f Mon Sep 17 00:00:00 2001 From: Dailer Date: Thu, 29 Nov 2018 14:30:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=98=AFBI.AbstractTreeValueChooser?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98,=E4=B8=8A=E6=AC=A1=E6=B2=A1?= =?UTF-8?q?=E6=94=B9=E5=AF=B9.=E5=8F=AA=E6=98=AF=E7=A2=B0=E5=B7=A7?= =?UTF-8?q?=E8=80=8C=E5=B7=B2.=20=5FisMatch=20=E6=96=B9=E6=B3=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=97=E7=9A=84=E5=89=8D=E4=B8=A4=E4=B8=AA=E5=8F=82=E6=95=B0?= =?UTF-8?q?,=E5=BA=94=E5=BD=93=E6=AD=A3=E5=A5=BD=E6=9E=84=E6=88=90?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=AE=8C=E6=95=B4=E7=9A=84=E8=B7=AF=E5=BE=84?= =?UTF-8?q?,=E6=89=80=E6=9C=89=E5=BA=94=E5=BD=93=E6=98=AF=20self.=5FisMatc?= =?UTF-8?q?h(parentValues.slice(0,=20i),=20parentValues[i],=20keyword)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/bundle.ie.js | 2 +- dist/bundle.js | 2 +- dist/fineui.ie.js | 2 +- dist/fineui.js | 2 +- dist/fineui_without_jquery_polyfill.js | 2 +- dist/widget.js | 2 +- src/component/treevaluechooser/abstract.treevaluechooser.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/bundle.ie.js b/dist/bundle.ie.js index 6755aaa5b..c1071cf6b 100644 --- a/dist/bundle.ie.js +++ b/dist/bundle.ie.js @@ -81708,7 +81708,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { function isSearchValueInParent(parentValues) { for (var i = 0, len = parentValues.length; i < len; i++) { - if (self._isMatch(parentValues.slice(0, parentValues.length - 1 - i), parentValues[i], keyword)) { + if (self._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) { return true; } } diff --git a/dist/bundle.js b/dist/bundle.js index 784c65f1b..3c816eb41 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -82112,7 +82112,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { function isSearchValueInParent(parentValues) { for (var i = 0, len = parentValues.length; i < len; i++) { - if (self._isMatch(parentValues.slice(0, parentValues.length - 1 - i), parentValues[i], keyword)) { + if (self._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) { return true; } } diff --git a/dist/fineui.ie.js b/dist/fineui.ie.js index ab5ca0a48..c0df52f26 100644 --- a/dist/fineui.ie.js +++ b/dist/fineui.ie.js @@ -81950,7 +81950,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { function isSearchValueInParent(parentValues) { for (var i = 0, len = parentValues.length; i < len; i++) { - if (self._isMatch(parentValues.slice(0, parentValues.length - 1 - i), parentValues[i], keyword)) { + if (self._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) { return true; } } diff --git a/dist/fineui.js b/dist/fineui.js index 744024757..9e1952233 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -82354,7 +82354,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { function isSearchValueInParent(parentValues) { for (var i = 0, len = parentValues.length; i < len; i++) { - if (self._isMatch(parentValues.slice(0, parentValues.length - 1 - i), parentValues[i], keyword)) { + if (self._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) { return true; } } diff --git a/dist/fineui_without_jquery_polyfill.js b/dist/fineui_without_jquery_polyfill.js index 2a4736e62..e176745c1 100644 --- a/dist/fineui_without_jquery_polyfill.js +++ b/dist/fineui_without_jquery_polyfill.js @@ -65173,7 +65173,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { function isSearchValueInParent(parentValues) { for (var i = 0, len = parentValues.length; i < len; i++) { - if (self._isMatch(parentValues.slice(0, parentValues.length - 1 - i), parentValues[i], keyword)) { + if (self._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) { return true; } } diff --git a/dist/widget.js b/dist/widget.js index a376b1557..ae84371f6 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -22710,7 +22710,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { function isSearchValueInParent(parentValues) { for (var i = 0, len = parentValues.length; i < len; i++) { - if (self._isMatch(parentValues.slice(0, parentValues.length - 1 - i), parentValues[i], keyword)) { + if (self._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) { return true; } } diff --git a/src/component/treevaluechooser/abstract.treevaluechooser.js b/src/component/treevaluechooser/abstract.treevaluechooser.js index 7c3afee6e..b0821bda1 100644 --- a/src/component/treevaluechooser/abstract.treevaluechooser.js +++ b/src/component/treevaluechooser/abstract.treevaluechooser.js @@ -270,7 +270,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, { function isSearchValueInParent(parentValues) { for (var i = 0, len = parentValues.length; i < len; i++) { - if (self._isMatch(parentValues.slice(0, parentValues.length - 1 - i), parentValues[i], keyword)) { + if (self._isMatch(parentValues.slice(0, i), parentValues[i], keyword)) { return true; } }