coffeecup icon indicating copy to clipboard operation
coffeecup copied to clipboard

Can't get Data Attributes to work

Open crypto-scythe opened this issue 10 years ago • 1 comments

I'm trying to use something like this:

a class:"gold", data-action:"add" -> "Add data point"

I always get the NaN error, please can you explain how to get this to work?

crypto-scythe avatar Jan 15 '15 21:01 crypto-scythe

Use 'data-action' instead, otherwise the coffeescript compiler thinks you're subtracting. It sucks, I know.

anodynos avatar Mar 16 '15 00:03 anodynos