Pass logging tests on IE7.

This commit is contained in:
Slava Kim
2013-05-31 10:52:58 -07:00
parent 61327d97ce
commit 0665b33d4f

View File

@@ -151,7 +151,7 @@ _.each(['debug', 'info', 'warn', 'error'], function (level) {
// tries to parse line as EJSON. returns object if parse is successful, or null if not
Log.parse = function (line) {
var obj = null;
if (line && line[0] === '{') { // might be json generated from calling 'Log'
if (line && line.charAt(0) === '{') { // might be json generated from calling 'Log'
try { obj = EJSON.parse(line); } catch (e) {}
}