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

Side by Side Diff: chrome/browser/resources/md_downloads/manager.js

Issue 2597573002: MD History/Downloads: convert .bind(this) and function property values to use => (Closed)
Patch Set: Created 4 years 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('downloads', function() { 5 cr.define('downloads', function() {
6 var Manager = Polymer({ 6 var Manager = Polymer({
7 is: 'downloads-manager', 7 is: 'downloads-manager',
8 8
9 properties: { 9 properties: {
10 /** @private */ 10 /** @private */
(...skipping 11 matching lines...) Expand all
22 22
23 /** @private */ 23 /** @private */
24 inSearchMode_: { 24 inSearchMode_: {
25 type: Boolean, 25 type: Boolean,
26 value: false, 26 value: false,
27 }, 27 },
28 28
29 /** @private {!Array<!downloads.Data>} */ 29 /** @private {!Array<!downloads.Data>} */
30 items_: { 30 items_: {
31 type: Array, 31 type: Array,
32 value: function() { return []; }, 32 value: () => [],
33 }, 33 },
34 34
35 /** @private */ 35 /** @private */
36 spinnerActive_: { 36 spinnerActive_: {
37 type: Boolean, 37 type: Boolean,
38 notify: true, 38 notify: true,
39 }, 39 },
40 }, 40 },
41 41
42 hostAttributes: { 42 hostAttributes: {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 Manager.removeItem = function(index) { 208 Manager.removeItem = function(index) {
209 Manager.get().removeItem_(index); 209 Manager.get().removeItem_(index);
210 }; 210 };
211 211
212 Manager.updateItem = function(index, data) { 212 Manager.updateItem = function(index, data) {
213 Manager.get().updateItem_(index, data); 213 Manager.get().updateItem_(index, data);
214 }; 214 };
215 215
216 return {Manager: Manager}; 216 return {Manager: Manager};
217 }); 217 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698