| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * @fileoverview Module of functions which produce a new page state in response |
| 7 * to an action. Reducers (in the same sense as Array.prototype.reduce) must be |
| 8 * pure functions: they must not modify existing state objects, or make any API |
| 9 * calls. |
| 10 */ |
| 11 |
| 12 cr.define('bookmarks', function() { |
| 13 /** |
| 14 * Root reducer for the Bookmarks page. This is called by the store in |
| 15 * response to an action, and the return value is used to update the UI. |
| 16 * @param {!BookmarksPageState} state |
| 17 * @param {Action} action |
| 18 * @return {!BookmarksPageState} |
| 19 */ |
| 20 function reduceAction(state, action) { |
| 21 return {}; |
| 22 } |
| 23 |
| 24 return { |
| 25 reduceAction: reduceAction, |
| 26 }; |
| 27 }); |
| OLD | NEW |