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

Side by Side Diff: components/proximity_auth/webui/resources/device-list.js

Issue 1150173003: Fix some JS style nits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 6 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
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 Polymer('device-list', { 5 Polymer('device-list', {
6 publish: { 6 publish: {
7 /** 7 /**
8 * The label of the list to be displayed. 8 * The label of the list to be displayed.
9 * @type {string} 9 * @type {string}
10 */ 10 */
11 label: 'Device List', 11 label: 'Device List',
12 12
13 /** 13 /**
14 * Info of the devices contained in the list. 14 * Info of the devices contained in the list.
15 * @type {Array.<DeviceInfo>} 15 * @type {Array<DeviceInfo>}
16 */ 16 */
17 devices: null 17 devices: null
18 }, 18 },
19 19
20 /** 20 /**
21 * Called when an instance is created. 21 * Called when an instance is created.
22 */ 22 */
23 created: function() { 23 created: function() {
24 this.devices = []; 24 this.devices = [];
25 }, 25 },
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 return 'device:bluetooth-disabled'; 67 return 'device:bluetooth-disabled';
68 case 'deviceOffline': 68 case 'deviceOffline':
69 return 'device:signal-cellular-off'; 69 return 'device:signal-cellular-off';
70 case 'invalidCredentials': 70 case 'invalidCredentials':
71 return 'notification:sync-problem'; 71 return 'notification:sync-problem';
72 default: 72 default:
73 return 'error'; 73 return 'error';
74 }; 74 };
75 } 75 }
76 }); 76 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698