|
|
@ -19,6 +19,24 @@ Tooltip.prototype.getOptions = function(options) {
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var onElementRemoved = function(event) {
|
|
|
|
|
|
|
|
event.data.hide();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var origShow = Tooltip.prototype.show;
|
|
|
|
|
|
|
|
Tooltip.prototype.show = function() {
|
|
|
|
|
|
|
|
origShow.call(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$element.on('remove', this, onElementRemoved);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var origHide = Tooltip.prototype.hide;
|
|
|
|
|
|
|
|
Tooltip.prototype.hide = function() {
|
|
|
|
|
|
|
|
origHide.call(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$element.off('remove', onElementRemoved);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
module.exports = {
|
|
|
|
appInitializer : function() {
|
|
|
|
appInitializer : function() {
|
|
|
|
|
|
|
|
|
|
|
|