sparkartgroup-archive / sparkart.js

Easily interact with Sparkart's APIs via Javascript.
1 stars 0 forks source link

safer json data parsing #70

Open UnquietCode opened 10 years ago

UnquietCode commented 10 years ago

This commit skips parsing of JSON data entirely when it is left undefined, as might happen with a connection error. Previously this resulted in an "Unexpected token u" error in the browser.