mirror of
https://github.com/status-im/reagent.git
synced 2025-01-14 13:54:08 +00:00
Clean up circular dependency avoidance
This commit is contained in:
parent
d276654ce4
commit
ff48b3653d
@ -77,9 +77,8 @@
|
|||||||
sa
|
sa
|
||||||
($! this :cljsState (ratom/atom nil)))))
|
($! this :cljsState (ratom/atom nil)))))
|
||||||
|
|
||||||
;; ugly circular dependency
|
;; avoid circular dependency: this gets set from template.cljs
|
||||||
(defn as-element [x]
|
(defonce as-element nil)
|
||||||
(js/reagent.impl.template.as-element x))
|
|
||||||
|
|
||||||
|
|
||||||
;;; Rendering
|
;;; Rendering
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
;;; Specialization for input components
|
;;; Specialization for input components
|
||||||
|
|
||||||
;; This gets set from dom.cljs
|
;; This gets set from dom.cljs
|
||||||
(def find-dom-node nil)
|
(defonce find-dom-node nil)
|
||||||
|
|
||||||
(defn input-unmount [this]
|
(defn input-unmount [this]
|
||||||
($! this :cljsInputValue nil))
|
($! this :cljsInputValue nil))
|
||||||
@ -322,6 +322,8 @@
|
|||||||
(satisfies? IPrintWithWriter x) (pr-str x)
|
(satisfies? IPrintWithWriter x) (pr-str x)
|
||||||
:else x))
|
:else x))
|
||||||
|
|
||||||
|
(set! comp/as-element as-element)
|
||||||
|
|
||||||
(defn expand-seq [s]
|
(defn expand-seq [s]
|
||||||
(let [a (into-array s)]
|
(let [a (into-array s)]
|
||||||
(dotimes [i (alength a)]
|
(dotimes [i (alength a)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user