我想设置从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