* * @param {MouseEvent} e * @returns
(e)
| 1822 | * @returns |
| 1823 | */ |
| 1824 | function tabOnclick(e) { |
| 1825 | e.preventDefault(); |
| 1826 | const { action } = e.target.dataset; |
| 1827 | if (action === "close-file") { |
| 1828 | this.remove(); |
| 1829 | return; |
| 1830 | } |
| 1831 | if (action === "toggle-pin") { |
| 1832 | this.togglePinned(); |
| 1833 | return; |
| 1834 | } |
| 1835 | this.makeActive(); |
| 1836 | } |
| 1837 | |
| 1838 | function createFileEvent(file) { |
| 1839 | return new FileEvent(file); |
nothing calls this directly
no test coverage detected