Browse Source

BI-88584 reafctor:代码优化

es6
Jimmy.Chai 3 years ago
parent
commit
29582f1e7a
  1. 1
      src/base/1.pane.js
  2. 2
      src/case/layer/pane.list.js

1
src/base/1.pane.js

@ -139,6 +139,7 @@ BI.Pane = BI.inherit(BI.Widget, {
},
setTipText: function (text) {
this._assertTip();
this._tipText.setText(text);
},

2
src/case/layer/pane.list.js

@ -123,7 +123,7 @@ BI.ListPane = BI.inherit(BI.Pane, {
}
BI.ListPane.superclass.populate.apply(this, arguments);
var tipText = BI.get(arguments, [2], '');
BI.isNotEmptyString(tipText) && BI.ListPane.superclass.setTipText.apply(this, [tipText]);
BI.isNotEmptyString(tipText) && this.setTipText(tipText);
this.button_group.populate.apply(this.button_group, arguments);
},

Loading…
Cancel
Save