| OLD | NEW |
| (Empty) |
| 1 | |
| 2 | |
| 3 Polymer('paper-dialog-base',{ | |
| 4 | |
| 5 publish: { | |
| 6 | |
| 7 /** | |
| 8 * The title of the dialog. | |
| 9 * | |
| 10 * @attribute heading | |
| 11 * @type string | |
| 12 * @default '' | |
| 13 */ | |
| 14 heading: '', | |
| 15 | |
| 16 /** | |
| 17 * @attribute transition | |
| 18 * @type string | |
| 19 * @default '' | |
| 20 */ | |
| 21 transition: '', | |
| 22 | |
| 23 /** | |
| 24 * @attribute layered | |
| 25 * @type boolean | |
| 26 * @default true | |
| 27 */ | |
| 28 layered: true | |
| 29 }, | |
| 30 | |
| 31 ready: function() { | |
| 32 this.super(); | |
| 33 this.sizingTarget = this.$.scroller; | |
| 34 }, | |
| 35 | |
| 36 headingChanged: function(old) { | |
| 37 var label = this.getAttribute('aria-label'); | |
| 38 if (!label || label === old) { | |
| 39 this.setAttribute('aria-label', this.heading); | |
| 40 } | |
| 41 }, | |
| 42 | |
| 43 openAction: function() { | |
| 44 if (this.$.scroller.scrollTop) { | |
| 45 this.$.scroller.scrollTop = 0; | |
| 46 } | |
| 47 } | |
| 48 | |
| 49 }); | |
| 50 | |
| OLD | NEW |