From 0bb23967c0891febb0844e1ebed490a876bc49d3 Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Sun, 1 Feb 2015 03:22:18 -0500 Subject: [PATCH] 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 --- js/default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/default.js b/js/default.js index fb9d32a..cc5330a 100644 --- a/js/default.js +++ b/js/default.js @@ -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; }