From 5a9c75975e73eb4051ba71ae38136dea9b9ac586 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 17 Oct 2013 15:37:22 +0000 Subject: [PATCH] feature(util) log: add if lArg[0] --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 9ed142a2..d56a8180 100644 --- a/lib/util.js +++ b/lib/util.js @@ -395,7 +395,7 @@ Util = exports || {}; lShift = Util.bind([].shift, lArg), lJoin = Util.bind([].join, lArg); - if (lConsole && lArg.length) { + if (lConsole && lArg.length && lArg[0]) { lUnShift(lDate); lConsole.log.apply(lConsole, lArg); lShift();