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
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
>
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