Index: chrome/browser/resources/options/pref_ui.js |
diff --git a/chrome/browser/resources/options/pref_ui.js b/chrome/browser/resources/options/pref_ui.js |
index e825b689cec5fdb097af3c7801d09d1fb1df7b7e..948ea56cdcbc804f03b32c8858d8dff1d8441647 100644 |
--- a/chrome/browser/resources/options/pref_ui.js |
+++ b/chrome/browser/resources/options/pref_ui.js |
@@ -42,7 +42,11 @@ cr.define('options', function() { |
///////////////////////////////////////////////////////////////////////////// |
// PrefInputElement class: |
- // Define a constructor that uses an input element as its underlying element. |
+ /** |
+ * Define a constructor that uses an input element as its underlying element. |
+ * @constructor |
+ * @extends {HTMLInputElement} |
+ */ |
var PrefInputElement = cr.ui.define('input'); |
PrefInputElement.prototype = { |
@@ -323,8 +327,9 @@ cr.define('options', function() { |
* @private |
*/ |
updatePrefFromState_: function() { |
- Preferences.setIntegerPref(this.pref, this.mapPositionToPref(this.value), |
- !this.dialogPref, this.metric); |
+ Preferences.setIntegerPref(this.pref, |
+ this.mapPositionToPref(parseInt(this.value, 10)), !this.dialogPref, |
+ this.metric); |
Dan Beam
2014/09/12 03:25:20
Preferences.setIntegerPref(
this.pref,
thi
Vitaly Pavlenko
2014/09/12 19:16:23
Done.
|
}, |
/** |
@@ -575,6 +580,7 @@ cr.define('options', function() { |
// Export |
return { |
PrefCheckbox: PrefCheckbox, |
+ PrefInputElement: PrefInputElement, |
PrefNumber: PrefNumber, |
PrefRadio: PrefRadio, |
PrefRange: PrefRange, |