1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-18 11:29:55 +00:00

Simplify $tw.utils.log

And in the process make it run on node.js
This commit is contained in:
Jeremy Ruston 2013-03-21 18:12:57 +00:00
parent 43c9ca1fe8
commit 3eeac8efca

View File

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