Skip to content

Commit

Permalink
dirac: defonce prevents dead code elimination in :advanced builds
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed Mar 25, 2016
1 parent a27a1a4 commit 8fd78f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/devtools/dirac.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
(defn ^:dynamic available? []
(and (ua/isChrome) (ua/isVersionOrHigher 47))) ; Chrome 47+

(defonce ^:dynamic *installed?* false)
(def ^:dynamic *installed?* false)

(defonce api-version 2) ; internal API version
(def api-version 2) ; internal API version

(def default-config
{:agent-host "localhost"
Expand All @@ -43,7 +43,7 @@
:context-availablity-next-trial-waiting-time 10
:eval-time-limit 10000})

(defonce static-config (gen-config)) ; this config is comming from environment and system properties
(def static-config (gen-config)) ; this config is comming from environment and system properties

; keep in mind that we want to avoid any state at all
; javascript running this code can be reloaded anytime, same with devtools front-end
Expand Down

0 comments on commit 8fd78f9

Please # to comment.