OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // This Polymer element is used as a container for all the feedback | 5 // This Polymer element is used as a container for all the feedback |
6 // elements. Based on a number of factors, it determines which elements | 6 // elements. Based on a number of factors, it determines which elements |
7 // to show and what will be submitted to the feedback servers. | 7 // to show and what will be submitted to the feedback servers. |
8 Polymer({ | 8 Polymer({ |
9 is: 'feedback-container', | 9 is: 'feedback-container', |
10 | 10 |
11 properties: { | |
12 /** | |
13 * The user's email, if available. | |
14 * @type {string|undefined} | |
15 */ | |
16 email: { | |
17 type: String, | |
18 }, | |
19 | |
20 /** | |
21 * The URL of the page the user was on before sending feedback. | |
22 * @type {string|undefined} | |
23 */ | |
24 url: { | |
25 type: String, | |
26 }, | |
27 }, | |
28 | |
11 /** | 29 /** |
12 * Retrieves the feedback privacy note text, if it exists. On non-officially | 30 * Retrieves the feedback privacy note text, if it exists. On non-officially |
13 * branded builds, the string is not defined. | 31 * branded builds, the string is not defined. |
14 * | 32 * |
15 * @return {string} Privacy note text. | 33 * @return {string} Privacy note text. |
16 */ | 34 */ |
17 getPrivacyNote_: function() { | 35 getPrivacyNote_: function() { |
18 return loadTimeData.valueExists('privacyNote') ? | 36 return loadTimeData.valueExists('privacyNote') ? |
19 this.i18n('privacyNote') : ''; | 37 this.i18n('privacyNote') : ''; |
afakhry
2016/08/03 23:56:01
This generates the following error:
Uncaught Type
apacible
2016/08/11 18:50:33
Done.
| |
20 }, | 38 }, |
21 }); | 39 }); |
OLD | NEW |