 (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

      "Compile Once")
    [:span.count-cfa27 (str "[" (num-selected-builds prj) "]")]]
  [:button
    {:on-click #(click-compile-options prj-key)}
    [:i.fa.fa-caret-down]]
  [:button.btn-da85d
    ;{:on-click #(click-clean-btn prj-key)}

;;------------------------------------------------------------------------------
;; Events
;;------------------------------------------------------------------------------

;; TODO: not sure this will work long-term if they click in whitespace outside
;; the app root element
(defn- click-root []
  (doall
    (map
      (fn [prj-key]
        (swap! state assoc-in [:projects prj-key :compile-menu-showing?] false))
      (-> @state :projects keys))))

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