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

Unified Diff: ui/webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.js

Issue 1132223005: Fix the pref binding by binding to the object rather than the element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixes
Patch Set: ::change Created 5 years, 7 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 | « chrome/browser/resources/settings/settings_main/settings_main.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.js
diff --git a/ui/webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.js b/ui/webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.js
index dcf12a0d4ff53499e7f9be39852abdf3972d69e4..aac89679e0e1298244887d4b9cb8cca604b1efc2 100644
--- a/ui/webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.js
+++ b/ui/webui/resources/cr_elements/v0_8/cr_checkbox/cr_checkbox.js
@@ -22,23 +22,16 @@ Polymer({
properties: {
/**
* Gets or sets the state. `true` is checked and `false` is unchecked.
- *
- * @attribute checked
- * @type {boolean}
- * @default false
*/
checked: {
type: Boolean,
value: false,
+ notify: true,
reflectToAttribute: true
},
/**
* If true, the user cannot interact with this element.
- *
- * @attribute disabled
- * @type {boolean}
- * @default false
*/
disabled: {
type: Boolean,
« no previous file with comments | « chrome/browser/resources/settings/settings_main/settings_main.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698