commit 024e1f78e3e339a027175316c912c1e5b726239c parent d65bf82e0ea50059fb5bdb3e314b947ba7fdce4d Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 1 Jun 2006 18:43:44 +0000 Call varDump automatically in Scholar.debug() on non-strings -- no more nesting varDump() Diffstat:
| M | chrome/chromeFiles/content/scholar/xpcom/scholar.js | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/xpcom/scholar.js b/chrome/chromeFiles/content/scholar/xpcom/scholar.js @@ -64,6 +64,10 @@ var Scholar = new function(){ return false; } + if (typeof message!='string'){ + message = Scholar.varDump(message); + } + if (!level){ level = 3; }