 ;; Init
 ;;------------------------------------------------------------------------------
 
+(def events-added? (atom false))
+
+(defn- add-events!
+  "Add events that are outside the react.js event system.
+   NOTE: this is a run-once function"
+  []
+  (when-not @events-added?
+    ;; TODO: we may not even use this
+    (reset! events-added? true)))
+
 (defn init! []
+  (add-events!)
   ;; trigger the initial render
   (swap! state identity))
;;------------------------------------------------------------------------------
;; Events
;;------------------------------------------------------------------------------

;; NOTE: this could be simplified with a go-loop?
(defn- handle-compiler-output

(quiescent/defcomponent AppRoot [app-state]
  (sablono/html
    [:div.app-ca3cd
      {:on-click click-root}
      [:div.header-a4c14
        [:div.title-8749a "ClojureScript Compiler"]
        [:div.title-links-42b06
