mirror of
https://github.com/metosin/reitit.git
synced 2025-12-27 20:08:25 +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)))))))
|
||||
|
||||
(defn- event-target [event]
|
||||
;; Read event's target from composed path to get shadow dom working,
|
||||
;; fallback to target property if not available
|
||||
"Read event's target from composed path to get shadow dom working,
|
||||
fallback to target property if not available"
|
||||
(let [original-event (.-event_ event)]
|
||||
(if (exists? (.-composedPath original-event))
|
||||
(first (.composedPath original-event))
|
||||
|
|
|
|||
Loading…
Reference in a new issue