diff --git a/demo/reagentdemo/news/news060.cljs b/demo/reagentdemo/news/news060.cljs index 338d603..3f38fa5 100644 --- a/demo/reagentdemo/news/news060.cljs +++ b/demo/reagentdemo/news/news060.cljs @@ -49,6 +49,12 @@ #_(r/dispose! logger) +(when-not (exists? js/document) + ;; Add no-op methods for node.js + (set! js/global.document + #js{:addEventListener identity + :removeEventListener identity})) + (defn mouse-pos-comp [] (r/with-let [pointer (r/atom nil) handler #(swap! pointer assoc