Stop once recursion depth has been reached

While testing I had the router allow infinite loops, but had support all
along to stop them if they occur. Though a message signaled to the user
using a status message would be mice, currently just log to console.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
Collin J. Doering 2015-02-01 03:22:18 -05:00
parent 1866ea9aa6
commit 0bb23967c0
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@
numRecur: spec.numRecur + 1,
recurDepth: spec.recurDepth });
} else {
callback(routes[i].rewriteGetUrl(spec.url), spec.url, routes[i].ajaxCallbacks);
console.log("Exceeded recursion depth for router");
}
break;
}