Call varDump automatically in Scholar.debug() on non-strings -- no more nesting varDump()
This commit is contained in:
parent
d65bf82e0e
commit
024e1f78e3
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ var Scholar = new function(){
|
|||
return false;
|
||||
}
|
||||
|
||||
if (typeof message!='string'){
|
||||
message = Scholar.varDump(message);
|
||||
}
|
||||
|
||||
if (!level){
|
||||
level = 3;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue