Commit 72511093 authored by Thomas Lechauve's avatar Thomas Lechauve

Call a function if no routes found

parent 07f986de
...@@ -47,7 +47,7 @@ $.extend({ ...@@ -47,7 +47,7 @@ $.extend({
this.list = this.list.slice(0, 0); this.list = this.list.slice(0, 0);
}, },
search: function (hash, level) { search: function (hash, level, failcallback, context) {
var stop = false, var stop = false,
i, j, i, j,
regex, regex,
...@@ -76,6 +76,9 @@ $.extend({ ...@@ -76,6 +76,9 @@ $.extend({
} }
i -= 1; i -= 1;
} }
if (stop === false) {
failcallback.call(context);
}
}, },
isLastLevel: function () { isLastLevel: function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment