(config)
| 20997 | } |
| 20998 | } |
| 20999 | tooltipFor(config) { |
| 21000 | const cloneDomEvent = (event2) => { |
| 21001 | let clone2 = event2; |
| 21002 | if (document["createEventObject"] && !document.createEvent) { |
| 21003 | clone2 = document["createEventObject"](event2); |
| 21004 | } |
| 21005 | return clone2; |
| 21006 | }; |
| 21007 | this._initDelayedFunctions(); |
| 21008 | this.attach({ selector: config.selector, global: config.global, onmouseenter: (event2, node) => { |
| 21009 | const html = config.html(event2, node); |
| 21010 | if (html) { |
| 21011 | this.delayShow(cloneDomEvent(event2), html); |
| 21012 | } |
| 21013 | }, onmousemove: (event2, node) => { |
| 21014 | const html = config.html(event2, node); |
| 21015 | if (html) { |
| 21016 | this.delayShow(cloneDomEvent(event2), html); |
| 21017 | } else { |
| 21018 | this.delayShow.$cancelTimeout(); |
| 21019 | this.delayHide(); |
| 21020 | } |
| 21021 | }, onmouseleave: () => { |
| 21022 | this.delayShow.$cancelTimeout(); |
| 21023 | this.delayHide(); |
| 21024 | } }); |
| 21025 | } |
| 21026 | _initDelayedFunctions() { |
| 21027 | const scheduler2 = this._scheduler; |
| 21028 | if (this.delayShow) { |
no test coverage detected