我想設置從clojurescript的element.style.height屬性,但是這個代碼不幸失敗:如何在Clojurescript中設置嵌套屬性值?
(set! (-> (sel1 tr :.ragslide) .-style .-height) (content-height))
(SEL1選擇DOM元素,它是從Dommy庫宏)
隨着以下錯誤:
clojure.lang.ExceptionInfo:
Assert failed: Can't set! local var or non-mutable field
(or (nil? local) (and (:field local) (or (:mutable local) (:unsynchronized-mutable local) (:volatile-mutable local)))) at line 79 {:tag :cljs/analysis-error, :file nil, :line 79, :column 7}
如何設置該屬性?
這是一個已知的core.async錯誤http://dev.clojure.org/jira/browse/ASYNC-3 – dnolen
這已經被固定在core.async master – dnolen