()
| 251 | } |
| 252 | |
| 253 | function hide() { |
| 254 | if (!state.visible) return; |
| 255 | state.visible = false; |
| 256 | |
| 257 | $mask.classList.remove("visible"); |
| 258 | $panel.classList.remove("visible"); |
| 259 | |
| 260 | actionStack.remove("references-panel"); |
| 261 | |
| 262 | setTimeout(() => { |
| 263 | $mask.remove(); |
| 264 | $panel.remove(); |
| 265 | }, 250); |
| 266 | |
| 267 | if (currentPanel === panelInstance) { |
| 268 | currentPanel = null; |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | function setReferences(references) { |
| 273 | state.loading = false; |
no test coverage detected