From 3eeac8efca84bce6ffb3416daeef5d104fc629ca Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 21 Mar 2013 18:12:57 +0000 Subject: [PATCH] Simplify $tw.utils.log And in the process make it run on node.js --- core/boot.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/boot.js b/core/boot.js index e06af49a3..dab6dac09 100644 --- a/core/boot.js +++ b/core/boot.js @@ -107,8 +107,7 @@ Log a message */ $tw.utils.log = function(/* args */) { if(console !== undefined && console.log !== undefined) { - return window.console && console.log - && Function.apply.call(console.log, console, arguments); + return Function.apply.call(console.log, console, arguments); } };