HS: set *prop of target — handle style in 'of' put-target
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 19s
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 19s
Add style case to the of-target compiler branch so 'set *color of #el to x' emits dom-set-style correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -150,7 +150,16 @@
|
|||||||
(hs-to-sx obj-ast)
|
(hs-to-sx obj-ast)
|
||||||
(nth prop-ast 1)
|
(nth prop-ast 1)
|
||||||
value)
|
value)
|
||||||
(list (quote set!) (hs-to-sx target) value))))))
|
(if
|
||||||
|
(and
|
||||||
|
(list? prop-ast)
|
||||||
|
(= (first prop-ast) (quote style)))
|
||||||
|
(list
|
||||||
|
(quote dom-set-style)
|
||||||
|
(hs-to-sx obj-ast)
|
||||||
|
(nth prop-ast 1)
|
||||||
|
value)
|
||||||
|
(list (quote set!) (hs-to-sx target) value)))))))
|
||||||
(true (list (quote set!) (hs-to-sx target) value)))))))
|
(true (list (quote set!) (hs-to-sx target) value)))))))
|
||||||
(define
|
(define
|
||||||
emit-on
|
emit-on
|
||||||
|
|||||||
@@ -150,7 +150,16 @@
|
|||||||
(hs-to-sx obj-ast)
|
(hs-to-sx obj-ast)
|
||||||
(nth prop-ast 1)
|
(nth prop-ast 1)
|
||||||
value)
|
value)
|
||||||
(list (quote set!) (hs-to-sx target) value))))))
|
(if
|
||||||
|
(and
|
||||||
|
(list? prop-ast)
|
||||||
|
(= (first prop-ast) (quote style)))
|
||||||
|
(list
|
||||||
|
(quote dom-set-style)
|
||||||
|
(hs-to-sx obj-ast)
|
||||||
|
(nth prop-ast 1)
|
||||||
|
value)
|
||||||
|
(list (quote set!) (hs-to-sx target) value)))))))
|
||||||
(true (list (quote set!) (hs-to-sx target) value)))))))
|
(true (list (quote set!) (hs-to-sx target) value)))))))
|
||||||
(define
|
(define
|
||||||
emit-on
|
emit-on
|
||||||
|
|||||||
Reference in New Issue
Block a user