mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Cleanup hash routing
This commit is contained in:
parent
939eb0fd78
commit
3757324e32
7 changed files with 8 additions and 52 deletions
12
vendors/routes/crossroads.js
vendored
12
vendors/routes/crossroads.js
vendored
|
|
@ -61,14 +61,6 @@
|
|||
route._destroy();
|
||||
}
|
||||
|
||||
removeAllRoutes() {
|
||||
var n = this.getNumRoutes();
|
||||
while (n--) {
|
||||
this._routes[n]._destroy();
|
||||
}
|
||||
this._routes.length = 0;
|
||||
}
|
||||
|
||||
parse(request) {
|
||||
request = request || '';
|
||||
|
||||
|
|
@ -91,10 +83,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
getNumRoutes() {
|
||||
return this._routes.length;
|
||||
}
|
||||
|
||||
_getMatchedRoutes(request) {
|
||||
var res = [],
|
||||
routes = this._routes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue