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