aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-04-25 01:26:39 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-04-25 01:26:39 +0200
commit48e50238634e69aad2b61acf88cda66b64288f07 (patch)
tree8f7df17c5c7e3d3a4e9820a29cacc051527149e0 /static
parentScheme and js now finds HTML in text with same regex. (diff)
downloadcalp-48e50238634e69aad2b61acf88cda66b64288f07.tar.gz
calp-48e50238634e69aad2b61acf88cda66b64288f07.tar.xz
Minor cleanup.
Diffstat (limited to 'static')
-rw-r--r--static/event-creator.ts2
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;