Fork me on GitHub
#proton
<
2015-12-16
>
geksilla20:12:26

hello everyone

geksilla20:12:12

I was wondering if (defmethod get-initial-config) should return vector of vectors? Like

(defmethod get-initial-config :lang/javascript []
  [["some.config" "value"]])

;; instead of 
(defmethod get-initial-config :lang/javascript [] 
  ["some.config" "value"])

geksilla20:12:18

Because when I've passed vector of vectors I got error

Uncaught Error: No item 1 in vector of length 1
I've fixed that by changing
conj
to
concat
here https://github.com/dvcrn/proton/blob/master/src/cljs/proton/lib/proton.cljs#L35

dvcrn23:12:32

@geksilla: vector of vector should be correct. Each vector is supposed to be a config fragment of key / value

dvcrn23:12:13

not sure why you get that error though, hrrrmm