Call varDump automatically in Scholar.debug() on non-strings -- no more nesting varDump()

This commit is contained in:
Dan Stillman 2006-06-01 18:43:44 +00:00
parent d65bf82e0e
commit 024e1f78e3

View file

@ -64,6 +64,10 @@ var Scholar = new function(){
return false;
}
if (typeof message!='string'){
message = Scholar.varDump(message);
}
if (!level){
level = 3;
}