Browse Source

BI-88256 fix: nashorn导出只导出一半的兼容

es6
windy 3 years ago
parent
commit
45c3717d23
  1. 5
      src/widget/multiselect/multiselect.loader.js
  2. 4
      src/widget/multiselect/multiselect.loader.nobar.js
  3. 4
      src/widget/searchmultitextvaluecombo/multitextvalue.loader.search.js

5
src/widget/multiselect/multiselect.loader.js

@ -172,7 +172,10 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, {
},
populate: function (items) {
arguments[0] = this._createItems(items);
// arguments.length为0时对arguments[0]赋值后不同环境对其length的取值不同(nashorn)
if (BI.isNotNull(items)) {
arguments[0] = this._createItems(items);
}
this.button_group.populate.apply(this.button_group, arguments);
},

4
src/widget/multiselect/multiselect.loader.nobar.js

@ -161,7 +161,9 @@ BI.MultiSelectNoBarLoader = BI.inherit(BI.Widget, {
},
populate: function (items) {
arguments[0] = this._createItems(items);
if (BI.isNotNull(items)) {
arguments[0] = this._createItems(items);
}
this.button_group.populate.apply(this.button_group, arguments);
},

4
src/widget/searchmultitextvaluecombo/multitextvalue.loader.search.js

@ -158,7 +158,9 @@ BI.SearchMultiSelectLoader = BI.inherit(BI.Widget, {
},
populate: function (items) {
arguments[0] = this._createItems(items);
if (BI.isNotNull(items)) {
arguments[0] = this._createItems(items);
}
this.button_group.populate.apply(this.button_group, arguments);
},

Loading…
Cancel
Save