0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🎉 Add some missing js hints.

This commit is contained in:
Andrey Antukh 2021-07-27 14:02:35 +02:00 committed by Andrés Moya
parent 38292bcda7
commit 55ddf9cc38

View file

@ -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))))