X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmkws-core.js;h=e08958fa5b54cb04aae8201b4eb8c17a83359522;hb=96aafc9ffce3645b210d56f9120f5e62d2866d1b;hp=0bfc174472329b0f097dc8040f87ae9daca12bed;hpb=e8fa844d1d8795fcf1b9d4b7ec60e53e7f470f13;p=mkws-moved-to-github.git diff --git a/src/mkws-core.js b/src/mkws-core.js index 0bfc174..e08958f 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -88,7 +88,8 @@ mkws.log = function(string) { // you need to disable use strict at the top of the file!!! if (mkws.log_level >= 3) { - console.log(arguments.callee.caller); + // Works in Chrome; not sure about elsewhere + console.trace(); } else if (mkws.log_level >= 2) { console.log(">>> called from function " + arguments.callee.caller.name + ' <<<'); }