| 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.Route = Route; | 3 MoreRouting.Route = Route; |
| 5 | 4 |
| 6 // Note that this can differ from the part separator defined by the driver. The | 5 // Note that this can differ from the part separator defined by the driver. The |
| 7 // driver's separator is used when parsing/generating URLs given to the client, | 6 // driver's separator is used when parsing/generating URLs given to the client, |
| 8 // whereas this one is for route definitions. | 7 // whereas this one is for route definitions. |
| 9 var PART_SEPARATOR = '/'; | 8 var PART_SEPARATOR = '/'; |
| 10 var PARAM_SENTINEL = ':'; | 9 var PARAM_SENTINEL = ':'; |
| 11 var SEPARATOR_CLEANER = /\/\/+/g; | 10 var SEPARATOR_CLEANER = /\/\/+/g; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 203 |
| 205 function namedParams(compiled) { | 204 function namedParams(compiled) { |
| 206 var result = []; | 205 var result = []; |
| 207 compiled.forEach(function(part) { | 206 compiled.forEach(function(part) { |
| 208 if (part.type === 'static') return; | 207 if (part.type === 'static') return; |
| 209 result.push(part.name); | 208 result.push(part.name); |
| 210 }); | 209 }); |
| 211 return result; | 210 return result; |
| 212 } | 211 } |
| 213 | 212 |
| 214 })(window); | 213 })(window); |
| OLD | NEW |