                      (.focus (r/dom-node this)))}))
 
 (defn -view-todo
-  [{:keys [id title editing? completed?] :as _todo_} dispatch]
+  [{:keys [id title editing? completed?] :as _todo} dispatch]
   [:li {:class (cond editing? "editing" completed? "completed")}
    [:div.view
     [:input.toggle {:type      "checkbox"

     [:button.clear-completed {:on-click #(dispatch :on-clear-completed)} "Clear completed"])])

(defn view
  [{:keys [field has-todos? todos all-completed? active-count has-completed-todos? visibility] :as _view-model_}
   dispatch]
  [:section.todoapp
   [-view-header @field dispatch]

         (-remove-todos model :completed?)))

;;;;;;;;;;;;;;;;;;;;;;;; View model
(defn -visibility
  [visibility-spec model]
  (if-let [result (->> visibility-spec
                       (filter #(contains? (:tokens %) (::routing/token model)))
                       first
                       :key)]
