Browse Source

Merge pull request #310 in FUI/fineui from ~TELLER/fineui:bugfix/BI-17502 to master

* commit '6696bb4d8552a28ab45f750e49781d5604667509':
  update
es6
guy 7 years ago
parent
commit
70cf1d90af
  1. 7
      dist/bundle.js
  2. 7
      dist/widget.js
  3. 7
      src/widget/singleselect/singleselectlist.insert.js

7
dist/bundle.js vendored

@ -104161,9 +104161,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
}, },
_assertValue: function (val) { _assertValue: function (val) {
val || (val = {}); val || (val = "");
val.type || (val.type = BI.Selection.Single);
val.value || (val.value = []);
}, },
_makeMap: function (values) { _makeMap: function (values) {
@ -104272,8 +104270,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
// this.trigger.adjustView(); // this.trigger.adjustView();
}, },
setValue: function (v) { setValue: function (v) {
this.storeValue = v || {}; this.storeValue = v || "";
this._assertValue(this.storeValue);
this.adapter.setValue(this.storeValue); this.adapter.setValue(this.storeValue);
this.trigger.setValue(this.storeValue); this.trigger.setValue(this.storeValue);
}, },

7
dist/widget.js vendored

@ -17659,9 +17659,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
}, },
_assertValue: function (val) { _assertValue: function (val) {
val || (val = {}); val || (val = "");
val.type || (val.type = BI.Selection.Single);
val.value || (val.value = []);
}, },
_makeMap: function (values) { _makeMap: function (values) {
@ -17770,8 +17768,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
// this.trigger.adjustView(); // this.trigger.adjustView();
}, },
setValue: function (v) { setValue: function (v) {
this.storeValue = v || {}; this.storeValue = v || "";
this._assertValue(this.storeValue);
this.adapter.setValue(this.storeValue); this.adapter.setValue(this.storeValue);
this.trigger.setValue(this.storeValue); this.trigger.setValue(this.storeValue);
}, },

7
src/widget/singleselect/singleselectlist.insert.js

@ -190,9 +190,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
}, },
_assertValue: function (val) { _assertValue: function (val) {
val || (val = {}); val || (val = "");
val.type || (val.type = BI.Selection.Single);
val.value || (val.value = []);
}, },
_makeMap: function (values) { _makeMap: function (values) {
@ -301,8 +299,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
// this.trigger.adjustView(); // this.trigger.adjustView();
}, },
setValue: function (v) { setValue: function (v) {
this.storeValue = v || {}; this.storeValue = v || "";
this._assertValue(this.storeValue);
this.adapter.setValue(this.storeValue); this.adapter.setValue(this.storeValue);
this.trigger.setValue(this.storeValue); this.trigger.setValue(this.storeValue);
}, },

Loading…
Cancel
Save