()
| 21028 | } }); |
| 21029 | } |
| 21030 | _initDelayedFunctions() { |
| 21031 | const scheduler2 = this._scheduler; |
| 21032 | if (this.delayShow) { |
| 21033 | this.delayShow.$cancelTimeout(); |
| 21034 | } |
| 21035 | if (this.delayHide) { |
| 21036 | this.delayHide.$cancelTimeout(); |
| 21037 | } |
| 21038 | this.tooltip.hide(); |
| 21039 | this.delayShow = utils.delay((event2, html) => { |
| 21040 | if (scheduler2.callEvent("onBeforeTooltip", [event2]) === false) { |
| 21041 | this.tooltip.hide(); |
| 21042 | } else { |
| 21043 | this.tooltip.setContent(html); |
| 21044 | this.tooltip.show(event2); |
| 21045 | } |
| 21046 | }, scheduler2.config.tooltip_timeout || 1); |
| 21047 | this.delayHide = utils.delay(() => { |
| 21048 | this.delayShow.$cancelTimeout(); |
| 21049 | this.tooltip.hide(); |
| 21050 | }, scheduler2.config.tooltip_hide_timeout || 1); |
| 21051 | } |
| 21052 | } |
| 21053 | function tooltip(scheduler2) { |
| 21054 | scheduler2.config.tooltip_timeout = 30; |
no test coverage detected