ClojureScript - why is javascript object array and not a map?

2011-07-27 Thread Marko Kocić
Note the following code that works: (defn ^:export displayPlain [id] (let [h (.getElementById window/document id) txt (aget h innerText)] (window/alert (str plain txt)) (aset h innerText here I am!))) Here, javascript object h is treated as array, and I was able to get and set

Re: ClojureScript - why is javascript object array and not a map?

2011-07-27 Thread Stuart Halloway
Note the following code that works: (defn ^:export displayPlain [id] (let [h (.getElementById window/document id) txt (aget h innerText)] (window/alert (str plain txt)) (aset h innerText here I am!))) Here, javascript object h is treated as array, and I was able to get