mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-30 04:11:32 -08:00
Add a simple log wrapper
We'll make it more sophisticated at some point
This commit is contained in:
parent
e2d6c16f50
commit
17e67a5bf9
1 changed files with 10 additions and 0 deletions
10
core/boot.js
10
core/boot.js
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue