Timeline for Best way to calculate total badge count in Javascript?
Current License: CC BY-SA 2.5
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 26, 2010 at 19:12 | vote | accept | Gelatin | ||
Jun 26, 2010 at 18:35 | comment | added | Kevin Montrose | @Simon - those fields are marked as optional. You'll have to check for presence before summing across them. There are lots of places in the API where such checks are necessary. | |
Jun 26, 2010 at 18:07 | comment | added | Gelatin | I know, but it makes sense (at least to me) to make it easier to upgrade when a new version does appear. Still, the main problem that prompted this question was that when I do that for some users (such as #999 on SuperUser) that don't have badges, the result I get is "NaN." | |
Jun 26, 2010 at 17:47 | history | answered | Kevin Montrose | CC BY-SA 2.5 |