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

Unified Diff: chrome/browser/resources/settings/device_page/device_page.js

Issue 2727443003: MD Settings: Device: fix initialization (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/device_page/device_page.js
diff --git a/chrome/browser/resources/settings/device_page/device_page.js b/chrome/browser/resources/settings/device_page/device_page.js
index ab3ad88c5f30e4670f04179cd4ad12f5144b0438..55c24f17020da6e9ef9fda90b2956e28e06ce7ae 100644
--- a/chrome/browser/resources/settings/device_page/device_page.js
+++ b/chrome/browser/resources/settings/device_page/device_page.js
@@ -22,25 +22,22 @@ Polymer({
},
/**
- * |hasMouse_|, |hasTouchpad_|, and |hasStylus_| start undefined so
- * observers don't trigger until they have been populated.
+ * |hasMouse_| and |hasTouchpad_| start undefined so observers don't trigger
+ * until they have been populated.
* @private
*/
- hasMouse_: {
- type: Boolean,
- value: false
- },
+ hasMouse_: Boolean,
/** @private */
- hasTouchpad_: {
- type: Boolean,
- value: false
- },
+ hasTouchpad_: Boolean,
- /** @private */
+ /**
+ * |hasStylus_| is initialized to false so that dom-if behaves correctly.
+ * @private
+ */
hasStylus_: {
type: Boolean,
- value: false
+ value: false,
},
/**
@@ -170,7 +167,7 @@ Polymer({
* @return {string} Description of the power source.
* @private
*/
- computePowerSourceName_: function (powerSources, lowPowerCharger) {
+ computePowerSourceName_: function(powerSources, lowPowerCharger) {
if (lowPowerCharger)
return this.i18n('powerSourceLowPowerCharger');
if (powerSources.length)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698