OLD | NEW |
1 | 1 |
2 | 2 |
3 /** | 3 /** |
4 * `iron-range-behavior` provides the behavior for something with a minimum to m
aximum range. | 4 * `iron-range-behavior` provides the behavior for something with a minimum to m
aximum range. |
5 * | 5 * |
6 * @demo demo/index.html | 6 * @demo demo/index.html |
7 * @polymerBehavior | 7 * @polymerBehavior |
8 */ | 8 */ |
9 Polymer.IronRangeBehavior = { | 9 Polymer.IronRangeBehavior = { |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 this.value = this.oldValue = isNaN(v) ? this.oldValue : v; | 79 this.value = this.oldValue = isNaN(v) ? this.oldValue : v; |
80 return this.value !== v; | 80 return this.value !== v; |
81 }, | 81 }, |
82 | 82 |
83 _update: function() { | 83 _update: function() { |
84 this._validateValue(); | 84 this._validateValue(); |
85 this._setRatio(this._calcRatio(this.value) * 100); | 85 this._setRatio(this._calcRatio(this.value) * 100); |
86 } | 86 } |
87 | 87 |
88 }; | 88 }; |
OLD | NEW |