eligrey / l10n.js

Passive localization JavaScript library
http://purl.eligrey.com/l10n.js
Other
392 stars 68 forks source link

Fix loading errors caused by inconsistent status codes #22

Closed MaKleSoft closed 10 years ago

MaKleSoft commented 10 years ago

Status codes can be inconsistent across browsers so it is safer to base success/failure of loading a JSON file on being able to successfully parse it. This deals with failed requests (missing files) as well as malformed jSON files. Fixes #21