OLD | NEW |
1 Polymer({ | 1 Polymer({ |
2 | |
3 is: 'paper-progress', | 2 is: 'paper-progress', |
4 | 3 |
5 behaviors: [ | 4 behaviors: [ |
6 Polymer.IronRangeBehavior | 5 Polymer.IronRangeBehavior |
7 ], | 6 ], |
8 | 7 |
9 properties: { | 8 properties: { |
10 | |
11 /** | 9 /** |
12 * The number that represents the current secondary progress. | 10 * The number that represents the current secondary progress. |
13 */ | 11 */ |
14 secondaryProgress: { | 12 secondaryProgress: { |
15 type: Number, | 13 type: Number, |
16 value: 0 | 14 value: 0 |
17 }, | 15 }, |
18 | 16 |
19 /** | 17 /** |
20 * The secondary ratio | 18 * The secondary ratio |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 this.setAttribute('aria-valuemax', max); | 84 this.setAttribute('aria-valuemax', max); |
87 }, | 85 }, |
88 | 86 |
89 _disabledChanged: function(disabled) { | 87 _disabledChanged: function(disabled) { |
90 this.setAttribute('aria-disabled', disabled ? 'true' : 'false'); | 88 this.setAttribute('aria-disabled', disabled ? 'true' : 'false'); |
91 }, | 89 }, |
92 | 90 |
93 _hideSecondaryProgress: function(secondaryRatio) { | 91 _hideSecondaryProgress: function(secondaryRatio) { |
94 return secondaryRatio === 0; | 92 return secondaryRatio === 0; |
95 } | 93 } |
96 | |
97 }); | 94 }); |
OLD | NEW |