    [broadfcui.utils :as utils]
    ))
 
-(defonce ^:private codemirror-instance (atom false))
+(defonce ^:private codemirror-constructor (atom false))
 
 (defn- regex-escape [s]
   (clojure.string/replace s #"[\\\*\+\|\^]" #(str "\\" %)))

     (this :call-method "off" event-type listener))
   :call-method
   (fn [{:keys [locals]} method & args]
     (apply js-invoke (aget @codemirror-instance "doc") method args))
   :get-default-props
   (fn []
     {:line-numbers? true

   :-display-code
   (fn [{:keys [refs props locals]}]
     (let [{:keys [mode line-numbers? read-only? text]} props]
       (swap! locals assoc :codemirror-instance
              (@codemirror-constructor (react/find-dom-node (@refs "container"))
               (clj->js
                (merge
                 (when text {:value text})
