Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Side by Side Diff: chrome/browser/resources/md_bookmarks/reducers.js

Issue 2731473002: MD Bookmarks: Implement basis for new data-binding system (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698