Thank you, it seems obvious now that you say it.

On Sep 4, 11:02 pm, Chris Granger <ibdk...@gmail.com> wrote:
> Try (aget (.attributes myelement) "data-url")
>
> Cheers,
> Chris.
>
> On Sep 4, 8:52 am, rdunklau <rdunk...@gmail.com> 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
> > element, but the compiler compiles (.data-url (.attributes myelement))
> > to myelement.attributes.data_url.
>
> > Is there a syntax translating to myelement.attributes['data-url'] ?
>
> > Thanks !

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to