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:
parent
38292bcda7
commit
55ddf9cc38
1 changed files with 2 additions and 2 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Reference in a new issue