jdm / asknot

Ask not what Mozilla can do for you but what you can do for Mozilla.
http://whatcanidoformozilla.org
Other
251 stars 210 forks source link

some help about the anatomy of this html/js of this project #276

Closed luzpaz closed 8 years ago

luzpaz commented 8 years ago

What is the function of data-choice-id= ?

jdm commented 8 years ago

It's used to provide a unique id for each terminating choice in the tree. It could probably be id instead; I don't recall why data-choice-id was selected, but it might have something to do with the localization library (l10n.js).

luzpaz commented 8 years ago

I'm trying to figure out what happens if I change it? What impact would it have and how would i update whatever else it impacts ? I'll take a look at the localization library