OLD | NEW |
1 | 1 /** |
2 | |
3 /** | |
4 * `iron-range-behavior` provides the behavior for something with a minimum to m
aximum range. | 2 * `iron-range-behavior` provides the behavior for something with a minimum to m
aximum range. |
5 * | 3 * |
6 * @demo demo/index.html | 4 * @demo demo/index.html |
7 * @polymerBehavior | 5 * @polymerBehavior |
8 */ | 6 */ |
9 Polymer.IronRangeBehavior = { | 7 Polymer.IronRangeBehavior = { |
10 | 8 |
11 properties: { | 9 properties: { |
12 | 10 |
13 /** | 11 /** |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 var v = this._clampValue(this.value); | 84 var v = this._clampValue(this.value); |
87 this.value = this.oldValue = isNaN(v) ? this.oldValue : v; | 85 this.value = this.oldValue = isNaN(v) ? this.oldValue : v; |
88 return this.value !== v; | 86 return this.value !== v; |
89 }, | 87 }, |
90 | 88 |
91 _update: function() { | 89 _update: function() { |
92 this._validateValue(); | 90 this._validateValue(); |
93 this._setRatio(this._calcRatio(this.value) * 100); | 91 this._setRatio(this._calcRatio(this.value) * 100); |
94 } | 92 } |
95 | 93 |
96 }; | 94 }; |
OLD | NEW |