                   "url" (route_param "url")
                   "referer" (route_param "referer")
                   "time" (str (new js/Date))}]
-      (if (not(nil? (get "url" params)))
+      (if (not(nil? (get params "url")))
         (do (println "initial param was:" params)
             (.route js/m "/")
             (updatedb [:editing] params))
-        (println "No params!"))))
+        (println "No params!" params))))
   (println "No auth!"))
 
 ;; (require '[modern-cljs.core :as c] :reload)

                           (m "td" nil (format_time (new js/Date time)))
                           (m "td" nil comment)
                           (m "td" nil
                              [(m "button.pure-button" {:onclick #(edit item pos)} "Edit")])])))
        (if (< PAGESIZE (count data))
          (subvec data start (+ start PAGESIZE))
          data))]))

        (clear)
        (println "Saved!" (str doc))))))

(defn delete [pos]
  (let [data (:data db)]
    (updatedb [:data]
              (vec (concat (subvec data 0 pos) (subvec data (inc pos)))))))
;
; View
;
