Commit 1aa0925
committed
fix: update callback on existing detector singleton
If the detector singleton already exists and a new fireEvent callback
is provided, update the callback. This handles the case where the
detector is created without a callback and later called with one.
Made-with: Cursor1 parent d91b562 commit 1aa0925
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
| 758 | + | |
759 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
760 | 763 | | |
761 | 764 | | |
762 | 765 | | |
| |||
0 commit comments