From 55ddf9cc38720a0828855fea03be05b74edc3afb Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 27 Jul 2021 14:02:35 +0200 Subject: [PATCH] :tada: Add some missing js hints. --- frontend/src/app/util/dom.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/util/dom.cljs b/frontend/src/app/util/dom.cljs index dfa4f4467..9cf48d13d 100644 --- a/frontend/src/app/util/dom.cljs +++ b/frontend/src/app/util/dom.cljs @@ -98,7 +98,7 @@ (defn get-attribute "Extract the value of one attribute of a dom node." [node attr-name] - (.getAttribute node attr-name)) + (.getAttribute ^js node attr-name)) (def get-target-val (comp get-value get-target)) @@ -382,5 +382,5 @@ (trigger-download-uri filename mtype uri))) (defn left-mouse? [bevent] - (let [event (.-nativeEvent bevent)] + (let [event (.-nativeEvent ^js bevent)] (= 1 (.-which event))))