* Silence any harmless errors caught in IE
});
}
function evalJSON(data) {
+ var jsonData = null;
if (typeof(JSON) === 'object' && typeof(JSON.parse) === 'function') {
- return JSON.parse(data);
- } else {
+ try {
+ jsonData = JSON.parse(data);
+ } catch (e) {
+ // ignore
+ }
+ }
+ if (jsonData == null) {
return eval('('+data+')');
}
}
var i = x+1;
compiled[i] = trTemplate.join("");
} catch (e) {
- alert("Exception on row " + x + ":" + e);
+ WCLog("Exception on row " + x + ":" + e);
}
}
compiled[length+2] = "</tbody>";