 (defn main [todos opts]
   (dom/component
     (dom/section #js {:id "main"}
-      (dom/input #js {:id "toggle-all"
-                      :type "checkbox"
+      (dom/input #js {:id "toggle-all" :type "checkbox"
                       :onChange #(toggle-all % todos)})
       (dom/ul #js {:id "todo-list"}
         (into-array
           (map #(om/render item/todo-item todos
-                  {:path [%]
-                   :opts opts
-                   :key :id
+                  {:path [%] :opts opts :key :id
                    :fn (fn [todo]
                          (if (= (:id todo) (:editing opts))
                            (assoc todo :editing true)

  (when (identical? (.-which e) ENTER_KEY)
    (let [new-field (dom/get-node owner "newField")]
      (om/update! app [:todos] conj
        {:id (guid)
         :title (.-value new-field)
         :completed false})
      (set! (.-value new-field) ""))
    false))


          (str " " (pluralize active "item") " left"))
        (dom/ul #js {:id "filters"}
          (dom/li nil
            (dom/a #js {:href "#/" :className (sel :all)} "All"))
          (dom/li nil
            (dom/a #js {:href "#/active" :className (sel :active)} "Active"))
          (dom/li nil
            (dom/a #js {:href "#/completed" :className (sel :completed)} "Completed")))
        clear-button))))

;; =============================================================================
