Elim cr-checkbox
[chromium-blink-merge.git] / chrome / browser / resources / settings / internet_page / network_proxy_exclusions.js
blobb765e1d8218db1eb3218a2358a67fdd47642fba1
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
3 // found in the LICENSE file.
5 /**
6 * @fileoverview Polymer element for displaying a list of proxy exclusions.
7 * Includes UI for adding, changing, and removing entries.
8 */
10 (function() {
12 Polymer({
13 is: 'network-proxy-exclusions',
15 properties: {
16 /**
17 * The list of exclusions.
18 * @type {!Array<string>}
20 exclusions: {
21 type: Array,
22 value: function() { return []; },
23 notify: true
27 /**
28 * Event triggered when an item is removed.
29 * @param {!{model: !{index: number}}} event
30 * @private
32 removeItem_: function(event) {
33 var index = event.model.index;
34 this.splice('exclusions', index, 1);
35 this.fire('proxy-change');
37 });
38 })();