Re: Clojurescript: unreachable values in associative arrays.

2011-09-04 Thread rdunklau
Thank you, it seems obvious now that you say it. On Sep 4, 11:02 pm, Chris Granger wrote: > Try (aget (.attributes myelement) "data-url") > > Cheers, > Chris. > > On Sep 4, 8:52 am, rdunklau wrote: > > > > > > > > > Hello. > > > I'm trying to use clojuresript in the browser, and I'm having troub

Re: Clojurescript: unreachable values in associative arrays.

2011-09-04 Thread Chris Granger
Try (aget (.attributes myelement) "data-url") Cheers, Chris. On Sep 4, 8:52 am, rdunklau wrote: > Hello. > > I'm trying to use clojuresript in the browser, and I'm having trouble > accessing object attributes with dashes in it. > For example, I'd like to access the data-url attribute of a DOM >

Clojurescript: unreachable values in associative arrays.

2011-09-04 Thread rdunklau
Hello. I'm trying to use clojuresript in the browser, and I'm having trouble accessing object attributes with dashes in it. For example, I'd like to access the data-url attribute of a DOM element, but the compiler compiles (.data-url (.attributes myelement)) to myelement.attributes.data_url. Is t