Browse Source

fix: 根据comment修改

es6
windy 5 years ago
parent
commit
088a3c3dc0
  1. 3
      src/case/trigger/trigger.icon.text.js
  2. 3
      src/case/trigger/trigger.text.js

3
src/case/trigger/trigger.icon.text.js

@ -93,8 +93,9 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
setTextCls: function(cls) {
var o = this.options;
this.text.element.removeClass(o.textCls).addClass(cls);
var oldCls = o.textCls;
o.textCls = cls;
this.text.element.removeClass(oldCls).addClass(cls);
},
setText: function (text) {

3
src/case/trigger/trigger.text.js

@ -57,8 +57,9 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
setTextCls: function(cls) {
var o = this.options;
this.text.element.removeClass(o.textCls).addClass(cls);
var oldCls = o.textCls;
o.textCls = cls;
this.text.element.removeClass(oldCls).addClass(cls);
},
setText: function (text) {

Loading…
Cancel
Save