Skip to content

Commit 61c5504

Browse files
committed
Fix cyclic deps
1 parent 3f698f4 commit 61c5504

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/nextjournal/clerk.clj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
[nextjournal.clerk.parser :as parser]
1414
[nextjournal.clerk.view :as view]
1515
[nextjournal.clerk.viewer :as v]
16-
[nextjournal.clerk.window :as window]
1716
[nextjournal.clerk.webserver :as webserver]))
1817

1918
(defonce ^:private !show-filter-fn (atom nil))
@@ -71,9 +70,9 @@
7170
#_(show! "https://raw.githubusercontent.com/nextjournal/clerk-demo/main/notebooks/rule_30.clj")
7271
#_(show! (java.io.StringReader. ";; # In Memory Notebook 👋\n(+ 41 1)"))
7372

74-
(defn window! "todo" [& args] (apply window/open! args))
75-
(def destroy-window! "todo" window/destroy!)
76-
(def destroy-all-windows! "todo" window/destroy-all!)
73+
(defn window! "todo" [& args] (apply (requiring-resolve 'nextjournal.clerk.window/open!) args))
74+
(defn destroy-window! "todo" [id] ((requiring-resolve 'nextjournal.clerk.window/destroy!) id))
75+
(defn destroy-all-windows! "todo" [] ((requiring-resolve 'nextjournal.clerk.window/destroy-all!)))
7776

7877
(defn recompute!
7978
"Recomputes the currently visible doc, without parsing it."

0 commit comments

Comments
 (0)