1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-22 22:10:03 +00:00

Add a simple log wrapper

We'll make it more sophisticated at some point
This commit is contained in:
Jeremy Ruston 2012-11-19 16:55:10 +00:00
parent e2d6c16f50
commit 17e67a5bf9

View File

@ -102,6 +102,16 @@ $tw.config.contentTypeInfo = {
$tw.utils = $tw.utils || {};
/*
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);
}
};
/*
Check if an object has a property
*/