OLD | NEW |
1 | |
2 (function(scope) { | 1 (function(scope) { |
3 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; | 2 var MoreRouting = scope.MoreRouting = scope.MoreRouting || {}; |
4 MoreRouting.Driver = Driver; | 3 MoreRouting.Driver = Driver; |
5 | 4 |
6 /** | 5 /** |
7 * TODO(nevir): Docs. | 6 * TODO(nevir): Docs. |
8 */ | 7 */ |
9 function Driver(opt_config) { | 8 function Driver(opt_config) { |
10 var config = opt_config || {}; | 9 var config = opt_config || {}; |
11 if (config.prefix) this.prefix = config.prefix; | 10 if (config.prefix) this.prefix = config.prefix; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 route = candidates[i]; | 93 route = candidates[i]; |
95 route.processPathParts(parts); | 94 route.processPathParts(parts); |
96 if (route.active) { | 95 if (route.active) { |
97 routes.push(route); | 96 routes.push(route); |
98 routes = routes.concat(this._matchingRoutes(parts.slice(route.compiled.len
gth), route.children)); | 97 routes = routes.concat(this._matchingRoutes(parts.slice(route.compiled.len
gth), route.children)); |
99 } | 98 } |
100 } | 99 } |
101 return routes; | 100 return routes; |
102 } | 101 } |
103 | 102 |
104 })(window); | 103 })(window); |
OLD | NEW |