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

Unified Diff: chrome/browser/resources/settings/internet_page/network_proxy_exclusions.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/internet_page/network_proxy_exclusions.js
diff --git a/chrome/browser/resources/settings/internet_page/network_proxy_exclusions.js b/chrome/browser/resources/settings/internet_page/network_proxy_exclusions.js
index 83dbb2ce9d055fa35c1501b05b5db2ff301f8914..c31ba56a89acfa758d176e2e82acfc1e3aefee0c 100644
--- a/chrome/browser/resources/settings/internet_page/network_proxy_exclusions.js
+++ b/chrome/browser/resources/settings/internet_page/network_proxy_exclusions.js
@@ -9,36 +9,38 @@
(function() {
-Polymer({
- is: 'network-proxy-exclusions',
+ Polymer({
+ is: 'network-proxy-exclusions',
- properties: {
- /** Whether or not the proxy values can be edited. */
- editable: {
- type: Boolean,
- value: false,
+ properties: {
+ /** Whether or not the proxy values can be edited. */
+ editable: {
+ type: Boolean,
+ value: false,
+ },
+
+ /**
+ * The list of exclusions.
+ * @type {!Array<string>}
+ */
+ exclusions: {
+ type: Array,
+ value: function() {
+ return [];
+ },
+ notify: true
+ }
},
/**
- * The list of exclusions.
- * @type {!Array<string>}
+ * Event triggered when an item is removed.
+ * @param {!{model: !{index: number}}} event
+ * @private
*/
- exclusions: {
- type: Array,
- value: function() { return []; },
- notify: true
+ onRemoveTap_: function(event) {
+ var index = event.model.index;
+ this.splice('exclusions', index, 1);
+ this.fire('proxy-change');
}
- },
-
- /**
- * Event triggered when an item is removed.
- * @param {!{model: !{index: number}}} event
- * @private
- */
- onRemoveTap_: function(event) {
- var index = event.model.index;
- this.splice('exclusions', index, 1);
- this.fire('proxy-change');
- }
-});
+ });
})();

Powered by Google App Engine
This is Rietveld 408576698