Permalink
Browse files

try to find bad attribute

  • Loading branch information...
1 parent 41cecc5 commit cdab426138812493fcdccc29ae4d124d12e6ca8c @ianb committed Apr 16, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 index.html
View
@@ -31,6 +31,11 @@
var result = {};
for (var i in this.result) {
result[i] = this.result[i];
+ try {
+ JSON.stringify(result[i]);
+ } catch (e) {
+ alert('Bad attribute: ' + i);
+ }
}
try {
$('#record').text(JSON.stringify(result, null, true));

0 comments on commit cdab426

Please sign in to comment.