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

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

Issue 1351623008: MD Settings: Languages model for language pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SingletonPrefs
Patch Set: Created 5 years, 3 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 /**
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698