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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-range-behavior/iron-range-behavior-extracted.js

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698