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