               [cordevicljs.client.views :as views]
               [cordevicljs.client.ws :as ws]))
 
-(defonce state (reagent/atom {:title "cordevicljs"
+(defonce state (reagent/atom {:title "CorDeviCLJS"
                               :messages []
                               :re-render-flip false}))
 

  (.addEventListener js/document "deviceready" onDeviceReady true))

(defn ^:export main []
  (.module (.-angular js/window) "app" #js ["onsen"])
  (.ready js/ons
    (fn []
      (ons-render app "app" state)
      (prepare-device))))

  (reagent/render-component
    [(ons-component component dom-id callback) state-wrapper]
     (.getElementById js/document dom-id)))

(defn ons-app [angular-app-id component reagent-id state-wrapper & [callback]]
  (.module (.-angular js/window) angular-app-id #js ["onsen"])
  (.ready js/ons
    (fn []
      (ons-render component reagent-id state-wrapper callback))))

(defmulti handle-event (fn [data [ev-id ev-data]] ev-id))

