mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 21:09:00 -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
|
(defn get-attribute
|
||||||
"Extract the value of one attribute of a dom node."
|
"Extract the value of one attribute of a dom node."
|
||||||
[node attr-name]
|
[node attr-name]
|
||||||
(.getAttribute node attr-name))
|
(.getAttribute ^js node attr-name))
|
||||||
|
|
||||||
(def get-target-val (comp get-value get-target))
|
(def get-target-val (comp get-value get-target))
|
||||||
|
|
||||||
|
@ -382,5 +382,5 @@
|
||||||
(trigger-download-uri filename mtype uri)))
|
(trigger-download-uri filename mtype uri)))
|
||||||
|
|
||||||
(defn left-mouse? [bevent]
|
(defn left-mouse? [bevent]
|
||||||
(let [event (.-nativeEvent bevent)]
|
(let [event (.-nativeEvent ^js bevent)]
|
||||||
(= 1 (.-which event))))
|
(= 1 (.-which event))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue