Chromium Code Reviews| 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 | |
|
michaelpg
2017/03/02 09:30:35
nit: remove blank line
tsergeant
2017/03/02 23:20:35
Done.
| |
| 14 /** | |
| 15 * Root reducer for the Bookmarks page. This is called by the store in | |
| 16 * response to an action, and the return value is used to update the UI. | |
| 17 * @param {BookmarksPageState} state | |
| 18 * @param {Action} action | |
| 19 * @return {BookmarksPageState} | |
| 20 */ | |
| 21 function reduceAction(state, action) { | |
| 22 return {}; | |
| 23 } | |
| 24 | |
| 25 return { | |
| 26 reduceAction: reduceAction, | |
| 27 }; | |
| 28 }); | |
| OLD | NEW |