Commit 3c337d4c authored by Joachim Schunk's avatar Joachim Schunk

add on-clos-functionality to modal-panel

parent 7f8ae3e7
......@@ -40,7 +40,7 @@
(swap! loaded-scripts (comp set conj) url)
(callback)))
(js/document.body.appendChild script)))
(callback)))
(callback)))
(defn load-scripts [urls callback]
(if-let [url (first urls)]
......@@ -62,4 +62,7 @@
(when-not valid-current-scheme? (js/console.debug "Invalid current-scheme declaration!"))
:invalid))))
(defn execute-and-reset [derefable-fn subject]
(when (and derefable-fn @derefable-fn)
(@derefable-fn subject)
(reset! derefable-fn nil)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment