OLD | NEW |
1 | 1 Polymer({ |
2 | 2 |
3 Polymer({ | |
4 | |
5 is: 'more-routing-config', | 3 is: 'more-routing-config', |
6 | 4 |
7 properties: { | 5 properties: { |
8 | 6 |
9 /** | 7 /** |
10 * The routing driver to use. | 8 * The routing driver to use. |
11 * | 9 * |
12 * * `hash`: `MoreRouting.HashDriver` | 10 * * `hash`: `MoreRouting.HashDriver` |
13 * * `path`: `MoreRouting.PathDriver` | 11 * * `path`: `MoreRouting.PathDriver` |
14 * * `mock`: `MoreRouting.MockDriver` | 12 * * `mock`: `MoreRouting.MockDriver` |
(...skipping 20 matching lines...) Expand all Loading... |
35 driver = new MoreRouting.PathDriver(config); | 33 driver = new MoreRouting.PathDriver(config); |
36 } else if (this.driver === 'mock') { | 34 } else if (this.driver === 'mock') { |
37 driver = new MoreRouting.MockDriver(config); | 35 driver = new MoreRouting.MockDriver(config); |
38 } else { | 36 } else { |
39 throw new Error('Unknown driver type "' + this.driver + '"'); | 37 throw new Error('Unknown driver type "' + this.driver + '"'); |
40 } | 38 } |
41 | 39 |
42 MoreRouting.driver = driver; | 40 MoreRouting.driver = driver; |
43 }, | 41 }, |
44 | 42 |
45 }); | 43 }); |
46 | |
OLD | NEW |