| 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.Params = Params; | 3 MoreRouting.Params = Params; |
| 5 | 4 |
| 6 /** | 5 /** |
| 7 * A collection of route parameters and their values, with nofications. | 6 * A collection of route parameters and their values, with nofications. |
| 8 * | 7 * |
| 9 * Params prefixed by `__` are reserved. | 8 * Params prefixed by `__` are reserved. |
| 10 * | 9 * |
| 11 * @param {!Array<string>} params The keys of the params being managed. | 10 * @param {!Array<string>} params The keys of the params being managed. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 36 }, | 35 }, |
| 37 set: function(value) { | 36 set: function(value) { |
| 38 if (state[param] === value) return; | 37 if (state[param] === value) return; |
| 39 state[param] = value; | 38 state[param] = value; |
| 40 model.__notify(param, value); | 39 model.__notify(param, value); |
| 41 }, | 40 }, |
| 42 }); | 41 }); |
| 43 }); | 42 }); |
| 44 } | 43 } |
| 45 | 44 |
| 46 })(window); | 45 })(window); |
| OLD | NEW |