mirror of
https://github.com/metosin/reitit.git
synced 2026-02-14 07:15:16 +00:00
Use doc-string.
This commit is contained in:
parent
b258e0abba
commit
733958404e
1 changed files with 2 additions and 2 deletions
|
|
@ -60,8 +60,8 @@
|
||||||
(recur (.-parentNode el)))))))
|
(recur (.-parentNode el)))))))
|
||||||
|
|
||||||
(defn- event-target [event]
|
(defn- event-target [event]
|
||||||
;; Read event's target from composed path to get shadow dom working,
|
"Read event's target from composed path to get shadow dom working,
|
||||||
;; fallback to target property if not available
|
fallback to target property if not available"
|
||||||
(let [original-event (.-event_ event)]
|
(let [original-event (.-event_ event)]
|
||||||
(if (exists? (.-composedPath original-event))
|
(if (exists? (.-composedPath original-event))
|
||||||
(first (.composedPath original-event))
|
(first (.composedPath original-event))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue