| 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 /** | 5 /** |
| 6 * @fileoverview An element that represents an SSL certificate entry. | 6 * @fileoverview An element that represents an SSL certificate entry. |
| 7 */ | 7 */ |
| 8 Polymer({ | 8 Polymer({ |
| 9 is: 'settings-certificate-entry', | 9 is: 'settings-certificate-entry', |
| 10 | 10 |
| 11 properties: { | 11 properties: { |
| 12 /** @type {!Certificate} */ | 12 /** @type {!Certificate} */ |
| 13 model: Object, | 13 model: Object, |
| 14 | 14 |
| 15 /** @type {!settings.CertificateType} */ | 15 /** @type {!settings.CertificateType} */ |
| 16 certificateType: String, | 16 certificateType: String, |
| 17 }, | 17 }, |
| 18 |
| 19 /** |
| 20 * @param {number} index |
| 21 * @return {boolean} Whether the given index corresponds to the last sub-node. |
| 22 * @private |
| 23 */ |
| 24 isLast_: function(index) { |
| 25 return index == this.model.subnodes.length - 1; |
| 26 }, |
| 18 }); | 27 }); |
| OLD | NEW |