diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-04-25 01:26:39 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-04-25 01:26:39 +0200 |
commit | 48e50238634e69aad2b61acf88cda66b64288f07 (patch) | |
tree | 8f7df17c5c7e3d3a4e9820a29cacc051527149e0 /static/event-creator.ts | |
parent | Scheme and js now finds HTML in text with same regex. (diff) | |
download | calp-48e50238634e69aad2b61acf88cda66b64288f07.tar.gz calp-48e50238634e69aad2b61acf88cda66b64288f07.tar.xz |
Minor cleanup.
Diffstat (limited to 'static/event-creator.ts')
-rw-r--r-- | static/event-creator.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/event-creator.ts b/static/event-creator.ts index 3459dba1..0f2c42b4 100644 --- a/static/event-creator.ts +++ b/static/event-creator.ts @@ -45,7 +45,7 @@ class EventCreator { pos_in: ((c: HTMLElement, e: MouseEvent) => number), round_to: number = 1, wide_element: boolean = false - ): ((e: MouseEvent) => any) { + ): ((e: MouseEvent) => void) { let that = this; return function(this: HTMLElement, e: MouseEvent) { if (e.buttons != 1 || !that.down_on_event) return; |