Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/polymer/components-chromium/paper-dialog/paper-dialog-base-extracted.js

Issue 1215543002: Remove Polymer 0.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698