diff --git a/core/boot.js b/core/boot.js index ba6e25f13..fb6c72070 100644 --- a/core/boot.js +++ b/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 */