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 | 6 * @fileoverview |
7 * 'cr-settings' is the main MD-Settings element, combining the UI and models. | 7 * 'cr-settings' is the main MD-Settings element, combining the UI and models. |
8 * | 8 * |
9 * Example: | 9 * Example: |
10 * | 10 * |
11 * <cr-settings></cr-settings> | 11 * <cr-settings></cr-settings> |
12 */ | 12 */ |
13 Polymer({ | 13 Polymer({ |
14 is: 'cr-settings', | 14 is: 'cr-settings', |
15 | 15 |
16 ready: function() { | 16 ready: function() { |
17 this.$.ui.directionDelegate = new settings.DirectionDelegateImpl; | 17 this.$.ui.directionDelegate = new settings.DirectionDelegateImpl; |
18 }, | 18 }, |
19 | |
20 properties: { | |
21 appealClosed_: { | |
22 type: Boolean, | |
23 value: function() { | |
24 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_); | |
25 }, | |
26 }, | |
27 }, | |
28 | |
29 /** @private */ | |
30 onCloseAppealTap_: function(e) { | |
31 sessionStorage.appealClosed_ = this.appealClosed_ = true; | |
32 }, | |
33 }); | 19 }); |
OLD | NEW |