adjust defview so that componen-map can be passed as the second arg
This commit is contained in:
parent
dd19989f12
commit
448e84a0e9
|
@ -45,7 +45,10 @@
|
|||
rest-body)
|
||||
[subs component-map body] (case (count rest-body')
|
||||
1 [nil {} (first rest-body')]
|
||||
2 [(first rest-body') {} (second rest-body')]
|
||||
2 (let [first-element (first rest-body')]
|
||||
(if (map? first-element)
|
||||
[nil first-element (second rest-body')]
|
||||
[(first rest-body') {} (second rest-body')]))
|
||||
3 rest-body')
|
||||
[subs-bindings vars-bindings] (prepare-subs subs)]
|
||||
`(do
|
||||
|
|
Loading…
Reference in New Issue