aboutsummaryrefslogtreecommitdiff
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
parentScheme and js now finds HTML in text with same regex. (diff)
downloadcalp-48e50238634e69aad2b61acf88cda66b64288f07.tar.gz
calp-48e50238634e69aad2b61acf88cda66b64288f07.tar.xz
Minor cleanup.
-rw-r--r--module/calp/html/components.scm1
-rw-r--r--static/event-creator.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/module/calp/html/components.scm b/module/calp/html/components.scm
index 47436c87..9b3e4ce0 100644
--- a/module/calp/html/components.scm
+++ b/module/calp/html/components.scm
@@ -36,7 +36,6 @@
variable unit)))))
;; Generates a button or button-like link.
-;; TODO <div/> inside <button/> isn't valid.
(define*-public (btn key: onclick href (class '())
allow-other-keys:
rest: args)
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;