From 2ae29be0a0ab0100a168aa2bad9328ca4d9cee86 Mon Sep 17 00:00:00 2001 From: fay Date: Wed, 26 Sep 2018 19:39:54 +0800 Subject: [PATCH] Revert "update" This reverts commit 85d730d79db1e77234e7a4a3451ea504d7dc4647. --- .../combo.textvaluedownlist.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/case/combo/textvaluedownlistcombo/combo.textvaluedownlist.js b/src/case/combo/textvaluedownlistcombo/combo.textvaluedownlist.js index 3ab2a9786..f075a3ec9 100644 --- a/src/case/combo/textvaluedownlistcombo/combo.textvaluedownlist.js +++ b/src/case/combo/textvaluedownlistcombo/combo.textvaluedownlist.js @@ -21,7 +21,6 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, { var value; if(BI.isNotNull(o.value)){ - this.value = o.value; value = this._digest(o.value); } this.trigger = BI.createWidget({ @@ -45,19 +44,13 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, { }); this.combo.on(BI.DownListCombo.EVENT_CHANGE, function () { - var currentVal = self.combo.getValue()[0].value; - if (currentVal !== self.value) { - self.setValue(currentVal); - self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE); - } + self.setValue(self.combo.getValue()[0].value); + self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE); }); this.combo.on(BI.DownListCombo.EVENT_SON_VALUE_CHANGE, function () { - var currentVal = self.combo.getValue()[0].childValue; - if (currentVal !== self.value) { - self.setValue(currentVal); - self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE); - } + self.setValue(self.combo.getValue()[0].childValue); + self.fireEvent(BI.TextValueDownListCombo.EVENT_CHANGE); }); }, @@ -76,7 +69,6 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, { }, _digest: function (v) { - this.value = v; return this.valueMap[v]; },