18 lines
446 B
Clojure
18 lines
446 B
Clojure
(ns main)
|
|
|
|
;; this is called before any code is reloaded
|
|
(defn ^:dev/before-load stop []
|
|
(js/console.log "stop"))
|
|
|
|
;; start is called by init and after code reloading finishes
|
|
(defn ^:dev/after-load start []
|
|
(js/console.log "start"))
|
|
|
|
;; init is called ONCE when the page loads
|
|
;; this is called in the index.html and must be exported
|
|
;; so it is available even in :advanced release builds
|
|
(defn init []
|
|
(js/console.log "init")
|
|
(start))
|
|
|