mirror of
https://github.com/penpot/penpot.git
synced 2026-09-07 20:49:37 +00:00
🎉 Add some missing js hints.
This commit is contained in:
parent
38292bcda7
commit
55ddf9cc38
@ -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…
x
Reference in New Issue
Block a user