 
 
 ;; -----------------------------------------------------------------------------
-;; Channels
-
-(defonce setup-channels!
-  (do
-    (reset! rc-cha-dom-viewport-resize
-            (poly/channel-for-viewport-resize!))
-    (reset! rc-cha-env-mouse-move
-            (poly/channel-for-mouse-move! js/window))
-    true))
-
-
-;; -----------------------------------------------------------------------------
 ;; Event Handlers (On and on and on, over and over again...)
 
 (defn on-dom-viewport-resize [{:keys [width height]}]



;; -----------------------------------------------------------------------------
;; Cursor Creators (Omni's little helpers)

(def cc (partial r/cursor omni-state))

(defonce cc-app (partial r/cursor (cc :app)))

(defonce cc-cha (partial r/cursor (cc :cha)))

(defonce cc-dom (partial r/cursor (cc :dom)))


  (poly/listen-for-viewport-resize! on-dom-viewport-resize))

(defonce listen-for-dom-viewport-resize!
  (poly/listen-take! (get-channel :dom-viewport-resize) on-dom-viewport-resize))

(defonce listen-for-dom-window-load!
  (poly/listen! js/window "load" on-dom-window-load))

(defonce listen-for-env-mouse-move!
  (poly/listen-take! (get-channel :env-mouse-move) on-env-mouse-move))


;; -----------------------------------------------------------------------------
