From 96170c7d5a72b18dbf1f3b1feea1877017262c40 Mon Sep 17 00:00:00 2001 From: fay Date: Tue, 4 Aug 2020 17:54:32 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"Pull=20request=20#1427:=20=E6=97=A0JI?= =?UTF-8?q?RA=E4=BB=BB=E5=8A=A1=20=E6=95=B4=E7=90=86=E4=B8=80=E4=B8=8B"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdbf1fa5fc33c70561991cb07df7888d3aa65463, reversing changes made to a650ff339d193c74fceb3304d11610989bd0f8a9. --- src/component/allvaluechooser/pane.allvaluechooser.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/component/allvaluechooser/pane.allvaluechooser.js b/src/component/allvaluechooser/pane.allvaluechooser.js index 9983bb42a..4c4507341 100644 --- a/src/component/allvaluechooser/pane.allvaluechooser.js +++ b/src/component/allvaluechooser/pane.allvaluechooser.js @@ -22,6 +22,9 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, { _init: function () { BI.AllValueChooserPane.superclass._init.apply(this, arguments); var self = this, o = this.options; + if (BI.isNotNull(o.items)) { + this.items = o.items; + } this.list = BI.createWidget({ type: "bi.multi_select_list", element: this, @@ -34,11 +37,6 @@ BI.AllValueChooserPane = BI.inherit(BI.AbstractAllValueChooser, { this.list.on(BI.MultiSelectList.EVENT_CHANGE, function () { self.fireEvent(BI.AllValueChooserPane.EVENT_CHANGE); }); - - if (BI.isNotNull(o.items)) { - this.items = o.items; - this.list.populate(); - } }, setValue: function (v) {