feature(util) log: add if lArg[0]

This commit is contained in:
coderaiser 2013-10-17 15:37:22 +00:00
parent c66577f79f
commit 5a9c75975e

View file

@ -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();