(contains? el)
(contains? parent el)
check wether a parent node (or the document) contains the child
check wether a parent node (or the document) contains the child
(eval-scripts s)
given a html string, eval all <script> tags and return the html without the scripts don't do this for everything, only content you trust.
given a html string, eval all <script> tags and return the html without the scripts don't do this for everything, only content you trust.
(event-chan el event)
(event-chan el event xf)
(event-chan el event xf once-or-cleanup)
returns a channel for events on el transform-fn should be a (fn [e el] some-val) where some-val will be put on the chan once-or-cleanup handles the removal of the event handler
returns a channel for events on el transform-fn should be a (fn [e el] some-val) where some-val will be put on the chan once-or-cleanup handles the removal of the event handler - true: remove after one event - false: never removed - chan: remove on msg/close
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close