Voorkom onverklaarde stack overflow op logging __callerTekst
svn path=/Website/trunk/; revision=32106
This commit is contained in:
@@ -292,7 +292,7 @@ function __Log(s, optionalCallerOrColor, leave_open)
|
||||
}
|
||||
}
|
||||
|
||||
function __callerTekst(clr)
|
||||
function __callerTekst(clr, nesting)
|
||||
{
|
||||
if (!clr)
|
||||
return "";
|
||||
@@ -300,7 +300,11 @@ function __callerTekst(clr)
|
||||
cl = cl?"{"+cl+"}":"";
|
||||
if (!clr.caller)
|
||||
return cl;
|
||||
var prnt = __callerTekst(clr.caller);
|
||||
nesting = nesting || 0;
|
||||
if (nesting > 20)
|
||||
return "<Nesting to deep??>"; // Onverklaard. Gezien op GET appl\mgt\prs_perslid.asp?mode=list&model=custom_fields&flexparentkey=55559
|
||||
|
||||
var prnt = __callerTekst(clr.caller, nesting + 1);
|
||||
if (prnt != "")
|
||||
return (cl||"<anonymous>") + "<br>" + prnt;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user