|
|
@ -96,7 +96,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
clearTimeout(self.showTimeout); |
|
|
|
clearTimeout(self.showTimeout); |
|
|
|
self.showTimeout = null; |
|
|
|
self.showTimeout = null; |
|
|
|
} |
|
|
|
} |
|
|
|
if(BI.isNull(self.hideTimeout)) { |
|
|
|
if (BI.isNull(self.hideTimeout)) { |
|
|
|
self.hideTimeout = BI.delay(function () { |
|
|
|
self.hideTimeout = BI.delay(function () { |
|
|
|
if (BI.isNotNull(self.hideTimeout)) { |
|
|
|
if (BI.isNotNull(self.hideTimeout)) { |
|
|
|
self._hideTooltip(); |
|
|
|
self._hideTooltip(); |
|
|
@ -176,7 +176,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
getTitle: function () { |
|
|
|
getTitle: function () { |
|
|
|
var title = this.options.title; |
|
|
|
var title = this.options.title; |
|
|
|
if(BI.isFunction(title)) { |
|
|
|
if (BI.isFunction(title)) { |
|
|
|
return title(); |
|
|
|
return title(); |
|
|
|
} |
|
|
|
} |
|
|
|
return title; |
|
|
|
return title; |
|
|
@ -184,7 +184,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
getWarningTitle: function () { |
|
|
|
getWarningTitle: function () { |
|
|
|
var title = this.options.warningTitle; |
|
|
|
var title = this.options.warningTitle; |
|
|
|
if(BI.isFunction(title)) { |
|
|
|
if (BI.isFunction(title)) { |
|
|
|
return title(); |
|
|
|
return title(); |
|
|
|
} |
|
|
|
} |
|
|
|
return title; |
|
|
|
return title; |
|
|
@ -200,12 +200,11 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
return this.options.value; |
|
|
|
return this.options.value; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_unMount: function () { |
|
|
|
destroyed: function () { |
|
|
|
BI.Single.superclass._unMount.apply(this, arguments); |
|
|
|
if (BI.isNotNull(this.showTimeout)) { |
|
|
|
if(BI.isNotNull(this.showTimeout)) { |
|
|
|
|
|
|
|
clearTimeout(this.showTimeout); |
|
|
|
clearTimeout(this.showTimeout); |
|
|
|
this.showTimeout = null; |
|
|
|
this.showTimeout = null; |
|
|
|
} |
|
|
|
} |
|
|
|
BI.Tooltips.remove(this.getName()); |
|
|
|
BI.Tooltips.remove(this.getName()); |
|
|
|
} |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |