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

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

Issue 1287913005: Refactor prefs.js for MD-Settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after meeting 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/checkbox/checkbox.js
diff --git a/chrome/browser/resources/settings/checkbox/checkbox.js b/chrome/browser/resources/settings/checkbox/checkbox.js
index d4bdeb4fc378da44e7864b61c7b6c070f9f80383..d6514fc9bd04a060be5c2365a3db3642a7981283 100644
--- a/chrome/browser/resources/settings/checkbox/checkbox.js
+++ b/chrome/browser/resources/settings/checkbox/checkbox.js
@@ -68,7 +68,7 @@ Polymer({
/** @private */
checkedChanged_: function() {
if (this.pref) {
- this.pref.value = this.getNewValue_(this.checked);
+ this.set('pref.value', this.getNewValue_(this.checked));
Dan Beam 2015/08/26 16:51:33 what's the functional difference? this notifies o
stevenjb 2015/08/26 17:32:18 Correct. https://www.polymer-project.org/1.0/docs/
michaelpg 2015/08/26 23:32:15 To expand on steven's answer: Polymer doesn't use
}
},

Powered by Google App Engine
This is Rietveld 408576698