diff --git a/src/case/trigger/trigger.text.js b/src/case/trigger/trigger.text.js index 4c7c13937..eb9c7c937 100644 --- a/src/case/trigger/trigger.text.js +++ b/src/case/trigger/trigger.text.js @@ -11,11 +11,15 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { }, _defaultConfig: function () { + var self = this; var conf = BI.TextTrigger.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { baseCls: (conf.baseCls || "") + " bi-text-trigger", height: 24, - textCls: "" + textCls: "", + title: function () { + return self.text.getText(); + } }); }, @@ -28,9 +32,6 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { textAlign: "left", height: o.height, text: o.text, - title: function () { - return self.text.getText(); - }, tipType: o.tipType, warningTitle: o.warningTitle, hgap: c.hgap,