OLD | NEW |
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 /** | 5 /** |
6 * @fileoverview 'settings-certificate-manager-page' is the settings page | 6 * @fileoverview 'settings-certificate-manager-page' is the settings page |
7 * containing SSL certificate settings. | 7 * containing SSL certificate settings. |
8 */ | 8 */ |
9 Polymer({ | 9 Polymer({ |
10 is: 'settings-certificate-manager-page', | 10 is: 'settings-certificate-manager-page', |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 * | 151 * |
152 * @param {string} dialogTagName The tag name of the dialog to be shown. | 152 * @param {string} dialogTagName The tag name of the dialog to be shown. |
153 * @param {string} domIfBooleanName The name of the boolean variable | 153 * @param {string} domIfBooleanName The name of the boolean variable |
154 * corresponding to the dialog. | 154 * corresponding to the dialog. |
155 * @private | 155 * @private |
156 */ | 156 */ |
157 openDialog_: function(dialogTagName, domIfBooleanName) { | 157 openDialog_: function(dialogTagName, domIfBooleanName) { |
158 this.set(domIfBooleanName, true); | 158 this.set(domIfBooleanName, true); |
159 this.async(function() { | 159 this.async(function() { |
160 var dialog = this.$$(dialogTagName); | 160 var dialog = this.$$(dialogTagName); |
161 dialog.addEventListener('iron-overlay-closed', function() { | 161 dialog.addEventListener('close', function() { |
162 this.set(domIfBooleanName, false); | 162 this.set(domIfBooleanName, false); |
163 }.bind(this)); | 163 }.bind(this)); |
164 }.bind(this)); | 164 }.bind(this)); |
165 }, | 165 }, |
166 }); | 166 }); |
OLD | NEW |