 
 ;;;;;;;;;;;;;;;;;;;;;;;; View model
 (def -visibility-spec
-  ; multiple tokens are supported mostly for :all case:
-  ; on navigating to base url the token is "", but on clicking the link the token becomes "/"
+  ; multiple tokens are supported mostly for :all case,
+  ; because on navigating to base url the token is "", but on clicking the link the token becomes "/"
   [{:key :all :title "All" :href "#/" :tokens #{"" "/"}}
    {:key :active :title "Active" :href "#/active" :tokens #{"/active"}}
    {:key :completed :title "Completed" :href "#/completed" :tokens #{"/completed"}}])

                       :key)]
    result
    (do
      ; we don't use .error because PhantomJS somehow stops on it on running testing
      (.log js/console "ERROR: Could not determine visibility for token" (pr-str (::routing/token model)) ". Will use some default visibility.")
      (-> -visibility-spec first :key))))


  [:section.todoapp
   [-view-header @field dispatch]

   (when @has-todos?
     [:div
      [-view-todo-list @todos @all-completed? dispatch]
      [-view-footer @active-count @has-completed-todos? @visibility dispatch]])])
